:root {
    --vtc-blue: #0F2B5B;
    --vtc-yellow: #FFC222;
    --vtc-green: #BAC405;
    --vtc-magenta: #ED72AA;
    --vtc-cyan: #00AEEF;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Sidebar Scrollbar */
.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

/* Nav Items */
.nav-item {
    color: rgba(255, 255, 255, 0.7);
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.nav-item.active {
    background: rgba(255, 194, 34, 0.15);
    color: var(--vtc-yellow);
    border-left: none;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--vtc-yellow);
    border-radius: 0 4px 4px 0;
}
.nav-item {
    position: relative;
}

/* Custom card hover */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(15, 43, 91, 0.15);
}

/* Progress bar animation */
@keyframes fillBar {
    from { width: 0; }
}
.progress-bar-fill {
    animation: fillBar 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Table row hover */
.table-row-hover {
    transition: background-color 0.15s;
}
.table-row-hover:hover {
    background-color: #f8fafc;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-green { background: #ecfccb; color: #3f6212; }
.badge-magenta { background: #fce7f3; color: #9d174d; }
.badge-cyan { background: #cffafe; color: #155e75; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Toast animation */
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
.toast-enter {
    animation: slideInRight 0.3s ease-out;
}
.toast-exit {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Kanban column */
.kanban-col {
    transition: all 0.2s;
}
.kanban-col:hover {
    background-color: #f8fafc;
}

/* Chart container */
.chart-container {
    position: relative;
    width: 100%;
}

/* Responsive table */
.responsive-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom checkbox */
.custom-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.custom-checkbox:checked {
    background: var(--vtc-blue);
    border-color: var(--vtc-blue);
}
.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Tooltip dot */
.pulse-dot {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(0, 174, 239, 0); }
}

/* Button primary */
.btn-primary {
    background: var(--vtc-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #0a1f44;
    box-shadow: 0 4px 12px rgba(15, 43, 91, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--vtc-blue);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: var(--vtc-blue);
    background: #f8fafc;
}

/* Phase timeline */
.phase-step {
    position: relative;
}
.phase-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.phase-step.completed:not(:last-child)::after {
    background: var(--vtc-green);
}

/* Tab styles */
.tab-btn {
    position: relative;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.tab-btn:hover {
    color: var(--vtc-blue);
}
.tab-btn.active {
    color: var(--vtc-blue);
    border-bottom-color: var(--vtc-blue);
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 43, 91, 0.4);
    backdrop-filter: blur(4px);
    z-index: 60;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 61;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.modal-close-btn:hover {
    background: #f1f5f9;
    color: #0F2B5B;
}

.modal-body {
    padding: 24px;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .modal-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #0F2B5B;
    box-shadow: 0 0 0 3px rgba(15, 43, 91, 0.1);
}

textarea.form-input {
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.form-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
    min-width: 100px;
}

.form-radio-label:hover {
    border-color: #cbd5e1;
}

.form-radio-label input[type="radio"] {
    accent-color: #0F2B5B;
    width: 16px;
    height: 16px;
}

.form-radio-label span {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== Login Page ===== */
.demo-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
}
.demo-login-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateX(2px);
}

/* ===== File Upload Area ===== */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}
.file-upload-area:hover {
    border-color: var(--vtc-blue);
    background: #eff6ff;
}
.file-upload-area.dragover {
    border-color: var(--vtc-cyan);
    background: #ecfeff;
}

.file-uploaded-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    transition: all 0.2s;
}
.file-uploaded-item:hover {
    background: #dcfce7;
}

/* ===== Service Tag Checkbox ===== */
.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.service-tag:hover {
    border-color: #cbd5e1;
}
.service-tag.active {
    border-color: var(--vtc-blue);
    background: rgba(15, 43, 91, 0.05);
    color: var(--vtc-blue);
}
.service-tag input {
    display: none;
}

/* ===== Bid Status Tracker ===== */
.bid-tracker {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}
.bid-tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
}
.bid-tracker-step .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s;
}
.bid-tracker-step.completed .dot {
    background: var(--vtc-green);
    color: white;
}
.bid-tracker-step.current .dot {
    background: var(--vtc-yellow);
    color: var(--vtc-blue);
    box-shadow: 0 0 0 4px rgba(255, 194, 34, 0.2);
}
.bid-tracker-step.pending .dot {
    background: #e2e8f0;
    color: #94a3b8;
}
.bid-tracker-step.rejected .dot {
    background: #ef4444;
    color: white;
}
.bid-tracker-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}
.bid-tracker-step:first-child::before {
    display: none;
}
.bid-tracker-step.completed::before {
    background: var(--vtc-green);
}
.bid-tracker-step .label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
}
.bid-tracker-step.completed .label,
.bid-tracker-step.current .label {
    color: #475569;
}

/* ===== Profile Completeness ===== */
.completeness-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.completeness-ring svg {
    transform: rotate(-90deg);
}
.completeness-ring .pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}