/* Variables */
:root {
    --purple: #6200EA;
    --purple-light: #7C4DFF;
    --purple-dark: #4A148C;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --black: #212529;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: var(--gray-light);
    color: var(--black);
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar */
#sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: var(--purple);
    color: var(--white);
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: var(--purple-dark);
    text-align: center;
}

.sidebar-header img {
    width: 60px;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    color: var(--white);
    font-size: 1.4em;
    margin: 0;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    background: var(--purple-light);
}

#sidebar ul li a i {
    margin-right: 10px;
}

/* Content */
#content {
    width: calc(100% - 250px);
    min-height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.3s;
}

#content.active {
    width: 100%;
}

/* Toggle Button */
#sidebarCollapse {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: none;
}

.btn-purple {
    background: var(--purple);
    color: var(--white);
}

.btn-purple:hover {
    background: var(--purple-dark);
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 40px;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-image-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    background: var(--white);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

/* Row Spacing */
.row.g-4 {
    margin: -1rem;
    > [class*="col-"] {
        padding: 1rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-image-wrapper {
        padding-top: 66.67%; /* 3:2 Aspect Ratio for mobile */
    }
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.2rem rgba(98, 0, 234, 0.25);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    #content.active {
        width: calc(100% - 250px);
    }
    #sidebarCollapse {
        display: block;
    }
}

/* Utility Classes */
.text-purple {
    color: var(--purple);
}

.bg-purple {
    background: var(--purple);
    color: var(--white);
}

/* Section Styles */
.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    color: var(--purple);
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Table Styles */
.table {
    background: var(--white);
    border-radius: 5px;
}

.table th {
    background: var(--purple);
    color: var(--white);
}

/* Card Styles */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-header {
    background: var(--purple);
    color: var(--white);
    border-radius: 10px 10px 0 0 !important;
}

/* Button Styles */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary {
    background: var(--purple);
    border-color: var(--purple);
}

.btn-primary:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
} 