:root {
    --primary-color  : #2563eb;
    --secondary-color: #64748b;
    --accent-color   : #f59e0b;
}

body {
    font-family     : 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
}

.navbar-brand {
    font-weight: 700;
    color      : var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color     : white;
    padding   : 80px 0;
}

.product-card {
    border       : none;
    border-radius: 12px;
    box-shadow   : 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition   : all 0.3s ease;
    height       : 100%;
}

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

.product-image {
    height         : 200px;
    background     : #f1f5f9;
    display        : flex;
    align-items    : center;
    justify-content: center;
    border-radius  : 8px 8px 0 0;
    overflow       : hidden;
}

.product-image img {
    max-height: 100%;
    max-width : 100%;
    object-fit: contain;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color    : var(--primary-color);
    border-radius   : 8px;
    padding         : 10px 24px;
    font-weight     : 600;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color    : #1d4ed8;
}

.footer {
    background-color: #1e293b;
    color           : white;
    padding         : 40px 0;
    margin-top      : 80px;
}

.admin-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    min-height: 100vh;
    color     : white;
}

.admin-sidebar .nav-link {
    color        : #cbd5e1;
    padding      : 12px 20px;
    margin       : 4px 0;
    border-radius: 8px;
    transition   : all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color           : white;
}

.admin-content {
    background-color: #f8fafc;
    min-height      : 100vh;
}

.card {
    border       : none;
    border-radius: 12px;
    box-shadow   : 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table {
    background-color: white;
    border-radius   : 12px;
    overflow        : hidden;
}

.badge {
    font-size    : 0.75rem;
    padding      : 6px 12px;
    border-radius: 20px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border       : 1px solid #d1d5db;
    padding      : 12px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow  : 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#syncAlert {
    font-weight: 500;
    padding    : 12px;
}


.search-container {
    position : relative;
    max-width: 400px;
    margin   : 0 auto;
}

.search-input-group {
    position: relative;
}

.search-input-group input {
    padding-right: 45px;
}

.image-search-btn {
    position  : absolute;
    right     : 5px;
    top       : 50%;
    transform : translateY(-50%);
    background: none;
    border    : none;
    color     : #6c757d;
    z-index   : 10;
}

.image-search-btn:hover {
    color: #007bff;
}

.search-results {
    margin-top: 20px;
}

.result-item {
    border       : 1px solid #dee2e6;
    border-radius: 8px;
    padding      : 15px;
    margin-bottom: 15px;
    transition   : all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform : translateY(-2px);
}

.result-image {
    width        : 100%;
    height       : 200px;
    object-fit   : cover;
    border-radius: 6px;
}

.similarity-score {
    position     : absolute;
    top          : 10px;
    right        : 10px;
    background   : rgba(0, 123, 255, 0.9);
    color        : white;
    padding      : 4px 8px;
    border-radius: 12px;
    font-size    : 12px;
}

.loading-spinner {
    display   : none;
    text-align: center;
    padding   : 20px;
}

.no-results {
    text-align: center;
    padding   : 40px;
    color     : #6c757d;
}

.upload-preview {
    max-width    : 100%;
    max-height   : 200px;
    border-radius: 8px;
    margin-top   : 10px;
}

.image-upload-area {
    border          : 2px dashed #cbd5e1;
    background-color: #f1f5f9;
    border-radius   : 12px;
    padding         : 30px;
    text-align      : center;
    color           : var(--secondary-color);
    cursor          : pointer;
    transition      : all 0.3s ease;
    position        : relative;
    min-height      : 160px;
}

.image-upload-area:hover {
    border-color    : var(--primary-color);
    background-color: #e0edff;
}

.image-upload-area.dragover {
    border-color    : #22c55e;
    background-color: #ecfdf5;
}

.image-upload-area p {
    margin   : 0;
    font-size: 16px;
    color    : #64748b;
}

.image-upload-area input[type="file"] {
    display: none;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

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

