/* VMT Custom Styles - White Theme */

:root {
    --vmt-primary: #0066cc;
    --vmt-primary-dark: #0052a3;
    --vmt-secondary: #6c757d;
    --vmt-success: #28a745;
    --vmt-warning: #ffc107;
    --vmt-danger: #dc3545;
    --vmt-light: #f8f9fa;
    --vmt-dark: #343a40;
    --vmt-white: #ffffff;
    --vmt-gray-100: #f8f9fa;
    --vmt-gray-200: #e9ecef;
    --vmt-gray-300: #dee2e6;
    --vmt-border-radius: 0.375rem;
    --vmt-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --vmt-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--vmt-white);
    color: var(--vmt-dark);
    line-height: 1.6;
}

/* Custom Bootstrap overrides */
.btn-primary {
    background-color: var(--vmt-primary);
    border-color: var(--vmt-primary);
}

.btn-primary:hover {
    background-color: var(--vmt-primary-dark);
    border-color: var(--vmt-primary-dark);
}

.text-primary {
    color: var(--vmt-primary) !important;
}

.bg-primary {
    background-color: var(--vmt-primary) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar {
    padding: 1rem 0;
    box-shadow: var(--vmt-box-shadow);
}

.nav-link {
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: var(--vmt-primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--vmt-primary) 0%, var(--vmt-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gear" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23gear)"/></svg>');
    pointer-events: none;
}

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

/* Cards */
.card {
    border: 1px solid var(--vmt-gray-200);
    border-radius: var(--vmt-border-radius);
    box-shadow: var(--vmt-box-shadow);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.card-img-top {
    border-top-left-radius: var(--vmt-border-radius);
    border-top-right-radius: var(--vmt-border-radius);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid var(--vmt-gray-200);
}

.product-card:hover {
    border-color: var(--vmt-primary);
    box-shadow: 0 0.5rem 1rem rgba(0, 102, 204, 0.15);
}

/* Gallery */
.gallery-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-image {
    transition: transform 0.3s ease;
}

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

/* Admin Styles */
.admin-sidebar {
    background-color: var(--vmt-gray-100);
    min-height: calc(100vh - 76px);
}

.admin-content {
    padding: 2rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--vmt-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-select:focus {
    border-color: var(--vmt-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--vmt-dark);
    background-color: var(--vmt-gray-100);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--vmt-border-radius);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--vmt-success);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--vmt-danger);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item i {
    display: block;
}

/* Buttons */
.btn {
    border-radius: var(--vmt-border-radius);
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    gap: 1rem;
}

.media-item {
    background-color: var(--vmt-white);
    transition: transform 0.2s ease;
}

.media-item:hover {
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--vmt-primary);
    border-color: var(--vmt-gray-300);
}

.pagination .page-item.active .page-link {
    background-color: var(--vmt-primary);
    border-color: var(--vmt-primary);
}

.pagination .page-link:hover {
    color: var(--vmt-primary-dark);
    background-color: var(--vmt-gray-100);
    border-color: var(--vmt-gray-300);
}

/* Footer */
footer {
    border-top: 1px solid var(--vmt-gray-200);
    background-color: var(--vmt-gray-100) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--vmt-primary);
    outline-offset: 2px;
}

.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;
}

/* Dark mode support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Currently maintaining white theme only */
    /* Future dark mode styles can be added here */
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .alert,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}