/* Custom Styles for Xenogene */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Colors */
:root {
    --xenogene-blue: #068aa9;
    --xenogene-orange: #ee8c1d;
    --xenogene-teal: #2c8697;
    --xenogene-slate: #4a93a1;
    --xenogene-dark-teal: #1a7681;
    --xenogene-cyan: #127f90;
    --xenogene-cream: #ecbc80;
    --xenogene-deep: #146464;
    --xenogene-dark: #1a1a1a;
    --xenogene-light-blue: #e6f7fb;
    --xenogene-light-orange: #fdf4e9;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid var(--xenogene-light-blue);
    border-top: 3px solid var(--xenogene-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Enhancements */
.header-shadow {
    box-shadow: 0 2px 20px rgba(6, 138, 169, 0.1);
}

/* Navigation Active States */
.nav-active {
    color: var(--xenogene-blue) !important;
    font-weight: 600;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--xenogene-orange);
    border-radius: 1px;
}

/* Custom Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--xenogene-blue), var(--xenogene-dark-teal));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 138, 169, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--xenogene-orange), var(--xenogene-cream));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 140, 29, 0.3);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.product-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--xenogene-light-blue), var(--xenogene-light-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--xenogene-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--xenogene-blue);
    box-shadow: 0 0 0 3px rgba(6, 138, 169, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--xenogene-blue);
    box-shadow: 0 0 0 3px rgba(6, 138, 169, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--xenogene-blue);
    box-shadow: 0 0 0 3px rgba(6, 138, 169, 0.1);
}

/* Shopping Cart */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.cart-total {
    background: var(--xenogene-light-blue);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--xenogene-blue);
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--xenogene-dark);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-sidebar.hidden {
    transform: translateX(-100%);
}

.admin-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background: #f8fafc;
    transition: margin-left 0.3s ease;
}

.admin-content.full-width {
    margin-left: 0;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector select {
    appearance: none;
    background: transparent;
    border: none;
    padding-right: 24px;
    font-weight: 500;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .product-card-image {
        height: 150px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* PayPal Button Customization */
.paypal-button-container {
    margin: 20px 0;
    max-width: 400px;
}

/* Success and Error Messages */
.message-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #047857;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.message-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.message-info {
    background: var(--xenogene-light-blue);
    border: 1px solid var(--xenogene-blue);
    color: #0369a1;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

/* Search Functionality */
.search-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--xenogene-blue);
    box-shadow: 0 0 0 3px rgba(6, 138, 169, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Visible for Better Accessibility */
.focus-visible:focus-visible {
    outline: 2px solid var(--xenogene-orange);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future Implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}