/* SAMREF Procurement CoPilot - Main Styles */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 280px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%) !important;
}

.sidebar .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background-color: #ffc107;
    color: #000 !important;
    font-weight: 600;
}

.sidebar .nav-link.active:hover {
    background-color: #ffc107;
    color: #000 !important;
}

.nav-section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Main content area adjustment */
.flex-fill {
    margin-left: var(--sidebar-width);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Card Hover Effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* RFP Card Specific */
.rfp-card, .rfp-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.rfp-card:hover, .rfp-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Review Cards */
.review-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

.review-icon {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
}

.review-card:hover .review-icon {
    transform: scale(1.1);
}

/* Upload Zone Styles */
.upload-zone {
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-zone:hover {
    background-color: rgba(0,0,0,0.02);
}

.upload-zone.dragover {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: #0dcaf0 !important;
}

.upload-icon-large {
    font-size: 2.5rem;
}

.upload-icon-huge {
    font-size: 3rem;
}

.upload-icon-mega {
    font-size: 4rem;
}

/* File List Styles */
.file-item {
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.file-icon {
    width: 50px;
    text-align: center;
}

/* Border Utilities */
.border-dashed {
    border-style: dashed !important;
}

/* Progress Bar Styles */
.progress {
    height: 8px;
}

/* Specific Width Progress Bars */
.progress-95 { width: 95%; }
.progress-92 { width: 92%; }
.progress-90 { width: 90%; }
.progress-88 { width: 88%; }
.progress-85 { width: 85%; }
.progress-80 { width: 80%; }
.progress-78 { width: 78%; }
.progress-75 { width: 75%; }

/* Badge Styles */
.badge.bg-primary.rounded-circle {
    font-size: 0.75rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

/* Table Styles */
.table td, .table th {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Hidden Elements */
.d-none-initial {
    display: none;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

/* Spacing utilities */
.space-y-3 > * + * {
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .flex-fill {
        margin-left: 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .upload-zone {
        min-height: 150px;
    }
    
    .upload-icon-large {
        font-size: 2rem;
    }
    
    .upload-icon-huge {
        font-size: 2.5rem;
    }
    
    .upload-icon-mega {
        font-size: 3rem;
    }
}

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

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Custom Alert Styles */
.alert-info-subtle {
    background-color: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.2);
    color: #055160;
}

.alert-success-subtle {
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: #0a3622;
}

.alert-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #664d03;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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