/* CSS Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ffd700;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --danger-color: #ff4444;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-contact span {
    margin-right: 20px;
}

.header-auth {
    display: flex;
    gap: 10px;
}

.btn-auth {
    color: var(--white);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
}

.btn-auth:hover {
    background: rgba(255,255,255,0.2);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-cart {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.btn-admin {
    color: var(--white);
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--border-radius-sm);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-group {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
}

.search-button {
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-button:hover {
    background: #ffed4e;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-primary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-white {
    background: var(--white);
}

.section-light {
    background: var(--light-color);
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 36px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Products */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.product-brand {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.action-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-detail {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.btn-detail:hover {
    opacity: 0.9;
}

/* Features */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Brands */
.brands-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.brand-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark-color);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

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

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb */
.breadcrumb-container {
    padding: 20px 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb li.active {
    color: #666;
    font-weight: 600;
}

.breadcrumb li.active span {
    color: #666;
}

/* Page Grid */
.page-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Page */
.products-page-container {
    margin-top: 20px;
}

.products-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.sidebar-card {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.brand-list {
    list-style: none;
}

.brand-item {
    margin-bottom: 10px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s;
}

.brand-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.brand-item.active .brand-link {
    background: var(--primary-color);
    color: var(--white);
}

.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.brand-icon-all {
    color: var(--primary-color);
    font-size: 20px;
}

.no-brands {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Filter */
.product-filter {
    margin-top: 20px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
}

.filter-btn {
    width: 100%;
}

/* Products Content */
.products-content {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.products-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.products-count {
    color: #666;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ccc;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: var(--success-color);
    color: var(--white);
}

.alert-danger {
    background: var(--danger-color);
    color: var(--white);
}

.alert-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.alert-info {
    background: var(--info-color);
    color: var(--white);
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.bg-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

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

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

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

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

.bg-secondary {
    background: #6c757d;
    color: var(--white);
}

/* Button Variants */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Table */
.table-form {
    width: 100%;
    border-collapse: collapse;
}

.table-form tr {
    margin-bottom: 15px;
}

.table-form td {
    padding: 10px;
    vertical-align: top;
}

.table-form label {
    font-weight: 600;
    color: var(--dark-color);
    display: block;
    margin-bottom: 5px;
}

.table-form input,
.table-form select,
.table-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
}

.table-form input:focus,
.table-form select:focus,
.table-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.table-button {
    text-align: center;
    padding: 20px;
}

.required {
    color: var(--danger-color);
}

/* Table Header */
.table-header {
    margin-bottom: 20px;
}

/* Button Secondary */
.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Continue Shopping */
.continue-shopping {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.continue-shopping:hover {
    color: var(--secondary-color);
}

/* Product Detail Page */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.product-detail-container {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.product-brand-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.brand-badge-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.product-brand-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.product-status {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-status.in-stock {
    background: var(--success-color);
    color: var(--white);
}

.product-status.out-of-stock {
    background: var(--danger-color);
    color: var(--white);
}

.product-detail-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius-md);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-value {
    font-weight: 600;
    color: var(--dark-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.product-price {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
}

.product-description {
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius-md);
}

.description-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.description-content {
    color: #666;
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 10px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Cart Form */
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quantity-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-controls label {
    font-weight: 600;
    color: var(--dark-color);
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--secondary-color);
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.add-to-cart-btn,
.continue-btn {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.add-to-cart-btn {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.continue-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
}

.continue-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-btn,
    .continue-btn {
        width: 100%;
    }
}

/* Auth Pages (Login/Register) */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-image {
        display: none;
    }
}

.auth-form-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 16px;
}

.auth-alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.auth-alert.error {
    background: var(--danger-color);
    color: var(--white);
}

.auth-alert.success {
    background: var(--success-color);
    color: var(--white);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.auth-form input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form input::placeholder {
    color: #999;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.forgot-password-group {
    text-align: right;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.btn-auth {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: var(--border-radius-md);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--secondary-color);
}

.auth-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

.input-error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
}

.has-error input {
    border-color: var(--danger-color);
}

.has-error input:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Register Page Specific */
.register-container {
    grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 992px) {
    .register-container {
        grid-template-columns: 1fr;
    }
}

.register-form input {
    padding: 15px;
}

.register-form .input-wrapper input {
    padding-left: 15px;
}

.register-form .input-icon {
    display: none;
}

.register-form .password-toggle {
    right: 15px;
}

/* Admin Header Styles */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.admin-logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.admin-logo span {
    color: var(--accent-color);
}

.admin-logo a {
    color: var(--white);
    text-decoration: none;
}

.admin-nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.admin-nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.admin-nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.btn-logout {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.2);
}

.btn-back-to-home {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back-to-home:hover {
    background: rgba(255,255,255,0.2);
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 30px 0;
}

.admin-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    text-align: center;
}

.admin-banner h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-stat-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.admin-stat-title {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
}

.admin-stat-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.admin-stat-link:hover {
    color: var(--secondary-color);
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.admin-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: var(--light-color);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table img {
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

/* Admin Button Styles */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.admin-btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

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

.admin-btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

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

.admin-btn-success:hover {
    background: #2e7d32;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.admin-btn-add {
    background: var(--success-color);
    color: var(--white);
    padding: 10px 18px;
    margin-bottom: 0;
}

.admin-btn-add:hover {
    background: #2e7d32;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Admin Page Header */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    margin: 0;
}

.admin-page-actions {
    display: flex;
    gap: 10px;
}

/* Admin Content Wrapper */
.admin-content {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

/* Admin Form Styles */
.admin-form-container {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.admin-form {
    width: 100%;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-color);
}

.admin-form-label .required {
    color: var(--danger-color);
}

.admin-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.admin-form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.admin-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.admin-form-file {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
}

.admin-form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.admin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.admin-alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.admin-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.admin-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Admin Badge Styles */
.admin-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.admin-badge-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-badge-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
