/* Variables */
:root {
    --blue: #007FFF;
    --blue-light: #00A3FF;
    --blue-dark: #0057B3;
    --dark: #0A0A0A;
    --dark-light: #1A1A1A;
    --dark-lighter: #2A2A2A;
    --white: #ffffff;
    --gray: #888888;
    --neon-glow: 0 0 10px rgba(0, 127, 255, 0.5);
}

/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    background: var(--dark);
    color: var(--white);
    padding-top: 76px;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 127, 255, 0.1);
}

.navbar-brand {
    color: var(--blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: var(--blue-light);
}

.brand-text {
    background: linear-gradient(45deg, var(--blue), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
}

.nav-link:hover {
    color: var(--blue);
}

/* Hover Underline Animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: var(--neon-glow);
}

.hover-underline:hover::after {
    width: 100%;
}

/* 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 {
    min-height: calc(100vh - 180px);
    padding: 40px 0;
}

/* Product Cards */
.product-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 127, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 127, 255, 0.2);
    border-color: var(--blue);
}

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

.product-image-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1.5rem;
    background: var(--dark-light);
    border-top: 1px solid rgba(0, 127, 255, 0.1);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    background: linear-gradient(45deg, var(--white), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* 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 {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 127, 255, 0.2);
    color: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: var(--dark-lighter);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: var(--neon-glow);
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 20px 0;
    border-top: 1px solid rgba(0, 127, 255, 0.1);
}

.footer p {
    margin: 0;
    color: var(--gray);
}

/* 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 {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--white);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
}

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

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

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

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

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--blue), var(--blue-light));
    border: none;
    box-shadow: var(--neon-glow);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--blue-light), var(--blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 127, 255, 0.4);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--dark-light);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        border: 1px solid rgba(0, 127, 255, 0.1);
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 20px 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
} 

.card-header h2, .card-header h3{ color:var(--blue)}