/**
 * EduSoft Store - Custom CSS Styles
 * โค้ด CSS เพิ่มเติมสำหรับปรับแต่งหน้าเว็บไซต์
 */

/* ------------------- */
/* 1. General Styling  */
/* ------------------- */
:root {
    /* Primary Colors - Tech Theme */
    --primary: #2E0F5A;         /* Dark Purple */
    --primary-dark: #1D0A38;    /* Darker Purple */
    --secondary: #0B2D56;       /* Dark Blue */
    --accent: #3B07BB;          /* Vibrant Purple */
    --success: #00BFA6;         /* Teal */
    --warning: #FF9E44;         /* Orange */
    --danger: #FF445A;          /* Red */
    --info: #037FFE;            /* Blue */
    --light: #f9fafb;           /* Light Gray */
    --dark: #0A0F29;            /* Deep Dark Blue */
    --gradient-start: #2E0F5A;  /* Dark Purple */
    --gradient-end: #0B2D56;    /* Dark Blue */
    
    /* Neon Colors for Accents */
    --neon-purple: #9D4EDD;
    --neon-blue: #3A86FF;
    --neon-teal: #00F5D4;
}

body {
    font-family: 'Prompt', sans-serif;
    color: #4b5563;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Divider Styling */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 1.5rem 0;
    border-radius: 2px;
}

.divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Beautiful buttons */
.btn-gradient {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(46, 15, 90, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--neon-blue));
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 15, 90, 0.4);
    color: white;
}

.btn-gradient:hover:before {
    left: 0;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    z-index: -1;
    transition: all 0.4s ease;
}

.btn-outline-gradient:hover {
    color: white;
}

.btn-outline-gradient:hover::before {
    width: 100%;
}

/* Cards with subtle shadows */
.card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(46, 15, 90, 0.15);
}

/* Form elements styling */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(46, 15, 90, 0.25);
}

/* ------------------- */
/* 2. Header Styling   */
/* ------------------- */
.tech-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-spacer {
    height: 90px; /* ความสูงเท่ากับ header */
}

.tech-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-brand {
    display: flex;
    align-items: center;
    flex: 2;
}

.tech-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tech-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    margin-right: 15px;
}

.tech-brand-text {
    color: white;
}

.tech-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(90deg, white, var(--neon-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

.tech-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
}

.tech-middle {
    flex: 1;
}

.tech-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.tech-search-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
}

.tech-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tech-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.tech-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tech-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(157, 78, 221, 0.3);
}

.tech-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.5);
}

/* Glow Effects - Reduced to improve performance */
.tech-header:before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--neon-blue) 0%, rgba(58, 134, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.2;
    z-index: -1;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
    100% {
        transform: translate(-10px, 10px);
    }
}

/* ------------------- */
/* 3. Hero Section     */
/* ------------------- */
.hero-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(to right, rgba(10, 15, 41, 0.95), rgba(10, 15, 41, 0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 0 !important; /* Override the margin since we changed header */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, white, var(--neon-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* ------------------- */
/* 4. Products Section */
/* ------------------- */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(46, 15, 90, 0.1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
    transition: all 0.5s ease;
}

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

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary);
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-price .rental {
    font-size: 0.9rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

.product-description {
    margin-bottom: 1rem;
    color: #6b7280;
    flex-grow: 1;
}

.product-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.product-type.software {
    background-color: rgba(46, 15, 90, 0.1);
    color: var(--primary);
}

.product-type.website {
    background-color: rgba(11, 45, 86, 0.1);
    color: var(--secondary);
}

.product-type.webapp {
    background-color: rgba(59, 7, 187, 0.1);
    color: var(--accent);
}

.product-card .btn {
    margin-top: auto;
}

/* Product Details */
.product-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.product-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.product-features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list li i {
    color: var(--success);
    margin-right: 1rem;
}

/* ------------------- */
/* 5. Contact Section  */
/* ------------------- */
.contact-section {
    background-color: #f9fafb;
    position: relative;
}

.contact-card {
    border-radius: 16px;
    height: 100%;
}

.contact-icon-wrapper {
    width: 42px;
    height: 42px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4b5563;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transform: translateY(-3px);
}

.map-responsive {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

/* ------------------- */
/* 6. Footer Styling   */
/* ------------------- */
.footer {
    background: linear-gradient(to right, var(--dark), var(--primary-dark));
    color: #9ca3af;
    position: relative;
}

.footer h5 {
    color: white;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-links {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    position: relative;
}

.footer-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--neon-purple), transparent);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover:after {
    width: 100%;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    width: 24px;
    margin-right: 10px;
    color: var(--neon-purple);
}

.payment-methods {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.payment-methods i, .payment-methods img {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.payment-methods i:hover, .payment-methods img:hover {
    transform: translateY(-3px);
    color: white;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 15, 90, 0.3);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 15, 90, 0.4);
    color: white;
}

/* Feature Cards */
.feature-card {
    overflow: visible;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 15, 90, 0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(46, 15, 90, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-icon-wrapper:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper:before {
    opacity: 1;
}

.feature-icon-wrapper i {
    position: relative;
    z-index: 2;
}

.feature-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .card-title {
    color: var(--primary);
}

/* Category Cards */
.category-card {
    overflow: visible;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 15, 90, 0.1);
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(46, 15, 90, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.category-icon-wrapper:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-teal));
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon-wrapper:before {
    opacity: 1;
}

.category-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .card-title {
    color: var(--primary);
}

/* Testimonial Cards */
.testimonial-card {
    overflow: visible;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 15, 90, 0.1);
}

.testimonial-card:before {
    content: "\f10d"; /* FontAwesome quote icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 3rem;
    color: rgba(46, 15, 90, 0.05);
    position: absolute;
    top: 10px;
    right: 15px;
}

.testimonial-rating {
    color: var(--warning);
}

.testimonial-text {
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial-img-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    position: relative;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 7, 187, 0.1) 0%, rgba(59, 7, 187, 0) 70%);
    border-radius: 50%;
    top: -150px;
    left: 10%;
    filter: blur(50px);
}

.stats-section:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.1) 0%, rgba(0, 245, 212, 0) 70%);
    border-radius: 50%;
    bottom: -150px;
    right: 10%;
    filter: blur(50px);
}

.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 10px 20px rgba(46, 15, 90, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stat-icon-wrapper:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-teal));
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.stat-wrapper:hover .stat-icon-wrapper:before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.faq-accordion .accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    background-color: transparent;
    border: none;
    border-radius: 16px !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(46, 15, 90, 0.05);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E0F5A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, rgba(157, 78, 221, 0) 70%);
    border-radius: 50%;
    top: -150px;
    right: 10%;
    filter: blur(50px);
}

.cta-section:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.1) 0%, rgba(0, 191, 166, 0) 70%);
    border-radius: 50%;
    bottom: -150px;
    left: 10%;
    filter: blur(50px);
}

.cta-card {
    border-radius: 24px;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.cta-card:before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, rgba(157, 78, 221, 0) 70%);
    border-radius: 50%;
    top: -75px;
    right: -75px;
    filter: blur(30px);
    z-index: -1;
}

.cta-card:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.1) 0%, rgba(0, 191, 166, 0) 70%);
    border-radius: 50%;
    bottom: -75px;
    left: -75px;
    filter: blur(30px);
    z-index: -1;
}

/* Admin Panel Styling */
.admin-main {
    margin-left: 280px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.admin-main.expanded {
    margin-left: 80px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.admin-user-dropdown {
    position: relative;
}

.admin-user-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-user-name {
    font-weight: 600;
    color: var(--dark);
}

.admin-user-role {
    font-size: 0.8rem;
    color: #6b7280;
}

.admin-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.admin-user-dropdown:hover .admin-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-user-dropdown-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    color: #4b5563;
    transition: all 0.3s ease;
}

.admin-user-dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary);
}

.admin-user-dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #f9fafb;
    color: var(--dark);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.admin-table th:first-child {
    border-top-left-radius: 12px;
}

.admin-table th:last-child {
    border-top-right-radius: 12px;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}

.admin-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.admin-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.admin-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge-success {
    background: rgba(0, 191, 166, 0.1);
    color: var(--success);
}

.admin-badge-warning {
    background: rgba(255, 158, 68, 0.1);
    color: var(--warning);
}

.admin-badge-danger {
    background: rgba(255, 68, 90, 0.1);
    color: var(--danger);
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
}

.admin-action-btn-view {
    background: var(--info);
}

.admin-action-btn-edit {
    background: var(--success);
}

.admin-action-btn-delete {
    background: var(--danger);
}

.admin-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-stat-card:before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(46, 15, 90, 0.05) 0%, rgba(46, 15, 90, 0) 70%);
    border-radius: 50%;
    top: -75px;
    right: -75px;
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(46, 15, 90, 0.2);
}

.admin-stat-card:nth-child(2) .admin-stat-icon {
    background: linear-gradient(135deg, var(--secondary), var(--info));
}

.admin-stat-card:nth-child(3) .admin-stat-icon {
    background: linear-gradient(135deg, var(--success), var(--neon-teal));
}

.admin-stat-card:nth-child(4) .admin-stat-icon {
    background: linear-gradient(135deg, var(--warning), var(--danger));
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.admin-stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.admin-chart-container {
    height: 300px;
    width: 100%;
}

/* Login Page */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-section:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 15, 90, 0.05) 0%, rgba(46, 15, 90, 0) 70%);
    border-radius: 50%;
    top: -200px;
    right: 10%;
    filter: blur(50px);
}

.login-section:after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.05) 0%, rgba(0, 191, 166, 0) 70%);
    border-radius: 50%;
    bottom: -200px;
    left: 10%;
    filter: blur(50px);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.login-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 15, 90, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input {
    margin-right: 0.5rem;
}

.login-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 15, 90, 0.2);
}

.login-btn:hover {
    box-shadow: 0 8px 20px rgba(46, 15, 90, 0.3);
    transform: translateY(-2px);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 500;
}

.login-separator {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.login-separator:before,
.login-separator:after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.login-separator-text {
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ------------------- */
/* 8. Responsive      */
/* ------------------- */
@media (max-width: 992px) {
    .tech-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tech-brand, .tech-search, .tech-right {
        width: 100%;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .tech-brand-text {
        text-align: left;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .feature-icon-wrapper, .category-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .admin-sidebar {
        width: 80px;
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-sidebar-menu-item span {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-main.expanded {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .tech-header {
        padding: 1rem 0;
    }
    
    .tech-title {
        font-size: 1.3rem;
    }
    
    .tech-tagline {
        font-size: 0.75rem;
    }
    
    .tech-search-input {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .product-gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.75rem;
    }
    
    .tech-logo {
        height: 40px;
    }
    
    .tech-search-btn {
        width: 35px;
        height: 35px;
    }
    
    .product-gallery-thumbs {
        flex-wrap: wrap;
    }
    
    .product-gallery-thumb {
        width: calc(25% - 7.5px);
    }
    
    .feature-icon-wrapper, .category-icon-wrapper, .stat-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .login-container {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}