/* Modern Custom CSS for WafiTechParts */

/* Header Styles - Glassmorphism Design */
.header-top {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    text-align: right;
}

.theme-switcher {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.theme-switcher label {
    font-weight: 500;
    font-size: 0.9em;
    opacity: 0.9;
}

.theme-switcher select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: inherit;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switcher select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #64b5f6, #90caf9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(100, 181, 246, 0.3));
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: rgba(100, 181, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.user-welcome {
    color: #90caf9;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Footer Styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    justify-content: center;
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #64b5f6;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #64b5f6;
}

.footer-section p {
    text-align: center;
}

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

.footer-bottom a {
    color: #64b5f6;
    text-decoration: none;
}

/* Product Grid Enhancements */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #64b5f6;
}

.product-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #4caf50;
    margin-bottom: 15px;
}

.product-description {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Form Enhancements */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #64b5f6;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

/* Button Styles */
.btn {
    background: linear-gradient(45deg, #64b5f6, #1976d2);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(45deg, #1976d2, #64b5f6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #666, #999);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #999, #666);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    color: #4caf50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #f44336;
}

.alert-info {
    background: rgba(100, 181, 246, 0.1);
    border-color: #64b5f6;
    color: #64b5f6;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #64b5f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        margin: 20px;
        padding: 20px;
    }
}

/* Print Styles */
@media print {

    nav,
    .mobile-menu-toggle,
    .theme-switcher {
        display: none;
    }

    .container {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Auth Pages Styling - Enhanced Modern Theme */
.auth-hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(25, 118, 210, 0.1));
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(100, 181, 246, 0.1), transparent 70%);
    pointer-events: none;
}

.auth-hero h1 {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
}

.auth-subtitle {
    font-size: 1.3em;
    opacity: 0.8;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.auth-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.auth-form-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #1976d2, #64b5f6);
    opacity: 0.8;
}

.auth-form-container:hover {
    box-shadow: 0 20px 60px rgba(100, 181, 246, 0.2);
}

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

.auth-links {
    margin-top: 30px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
    opacity: 0.8;
}

.auth-links a {
    color: #64b5f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.auth-info {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.auth-info:hover {
    box-shadow: 0 15px 50px rgba(100, 181, 246, 0.1);
}

.auth-info h3 {
    color: #64b5f6;
    margin-bottom: 20px;
    font-weight: 600;
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.auth-info li {
    margin: 15px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.demo-accounts {
    background: rgba(100, 181, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

.demo-accounts:hover {
    background: rgba(100, 181, 246, 0.15);
    box-shadow: 0 12px 35px rgba(100, 181, 246, 0.2);
}

.demo-accounts h4 {
    color: #64b5f6;
    margin-bottom: 15px;
    font-weight: 600;
}

.demo-accounts p {
    margin: 8px 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.features-highlight {
    margin-top: 30px;
    padding: 25px;
    background: rgba(100, 181, 246, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

.features-highlight:hover {
    background: rgba(100, 181, 246, 0.15);
    box-shadow: 0 12px 35px rgba(100, 181, 246, 0.2);
}

.features-highlight h4 {
    color: #64b5f6;
    margin-bottom: 15px;
    font-weight: 600;
}

.features-highlight p {
    margin: 8px 0;
    opacity: 0.9;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

@media (max-width: 768px) {
    .auth-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .auth-form-container,
    .auth-info {
        padding: 30px 20px;
    }
}

/* Products Page Styling */
.products-hero {
    text-align: center;
    padding: 60px 0;
}

.products-subtitle {
    font-size: 1.3em;
    margin: 20px 0;
    opacity: 0.8;
}

.products-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.filters-sidebar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    color: #64b5f6;
    margin-bottom: 25px;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #64b5f6;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.products-main {
    min-height: 600px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-info {
    opacity: 0.8;
}

.view-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 181, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.product-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 10px;
}

.product-description {
    opacity: 0.8;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
}

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

.product-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9em;
    text-align: center;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 150px;
    margin-bottom: 0;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-grid.list-view .product-actions {
    flex-direction: column;
    width: 150px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .products-content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .products-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .filters-sidebar {
        position: static;
        padding: 20px;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .view-controls {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .products-grid.list-view .product-actions {
        width: 100%;
        flex-direction: row;
    }
}