/* SOIP — Student Opportunity Intelligence Platform */

/* ============ Design System ============ */
:root {
    --bs-primary: #2563EB;
    --bs-primary-rgb: 37, 99, 235;
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-border-radius: 0.5rem;
    --bs-border-color: #E5E7EB;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #FAFAFA;
    color: #111827;
    font-size: 0.9375rem;
}

/* Navbar */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: none !important;
    padding: 0.75rem 0;
}
.nav-link { font-weight: 500; font-size: 0.875rem; color: #6B7280 !important; }
.nav-link:hover, .nav-link.active { color: #111827 !important; }

/* Cards */
.card {
    border: 1px solid #E5E7EB !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05) !important;
}
.card-header {
    background-color: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB !important;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

/* Buttons */
.btn { font-weight: 500; border-radius: 0.5rem; letter-spacing: -0.01em; }
.btn-primary {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
}
.btn-primary:hover {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
}

/* Form controls */
.form-control, .form-select {
    border-color: #D1D5DB !important;
    border-radius: 0.5rem !important;
}
.form-control:focus, .form-select:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}

/* Badges */
.badge { font-weight: 500; border-radius: 0.375rem; font-size: 0.75rem; }

/* ============ Score Badges ============ */
.score-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.score-badge-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: white;
}

.score-apply { background: linear-gradient(135deg, #198754, #20c997); }
.score-consider { background: linear-gradient(135deg, #ffc107, #fd7e14); color: #333; }
.score-skip { background: linear-gradient(135deg, #6c757d, #adb5bd); }
.score-pending { background: linear-gradient(135deg, #dee2e6, #ced4da); color: #666; }

/* ============ Deadline Alerts ============ */
.deadline-alert-panel {
    position: sticky;
    top: 56px;
    z-index: 100;
}

.deadline-row {
    transition: background-color 0.2s;
}

.deadline-critical {
    background: rgba(220, 53, 69, 0.08);
    border-left: 3px solid #dc3545;
}

.deadline-urgent {
    background: rgba(253, 126, 20, 0.08);
    border-left: 3px solid #fd7e14;
}

.deadline-upcoming {
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #ffc107;
}

.deadline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ============ Pulse Animation ============ */
.pulse-animation {
    animation: pulse 1.5s infinite;
}

.pulse-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-badge {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ============ Timeline Badges ============ */
.timeline-badge {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* ============ Custom Colors ============ */
.bg-orange { background-color: #fd7e14 !important; }
.text-orange { color: #fd7e14 !important; }
.bg-purple { background-color: #6f42c1 !important; }

/* ============ Opportunity Cards ============ */
.opp-card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.opp-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* ============ Progress Bars ============ */
.progress {
    border-radius: 4px;
}

/* ============ Navbar ============ */
.navbar-brand .badge {
    font-size: 0.65rem;
    vertical-align: middle;
}

/* ============ Community Feedback ============ */
.feedback-card {
    border-bottom: 1px solid #eee;
}

.feedback-card:last-child {
    border-bottom: none;
}

.feedback-own {
    background-color: rgba(13, 110, 253, 0.04);
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.difficulty-1 { background-color: #20c997; }
.difficulty-2 { background-color: #198754; }
.difficulty-3 { background-color: #ffc107; color: #333; }
.difficulty-4 { background-color: #fd7e14; }
.difficulty-5 { background-color: #dc3545; }

.outcome-badge-applied { background-color: #0d6efd; color: white; }
.outcome-badge-interview { background-color: #6f42c1; color: white; }
.outcome-badge-offer { background-color: #198754; color: white; }
.outcome-badge-rejected { background-color: #dc3545; color: white; }
.outcome-badge-withdrawn { background-color: #6c757d; color: white; }

.vote-button {
    min-width: 52px;
}

/* ============ Admin Panel ============ */
.admin-stat-card {
    transition: transform 0.15s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
}

.token-display {
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.text-purple { color: #6f42c1 !important; }

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
}

/* ============ Dashboard Command Center ============ */
.stat-card-link {
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.recommendation-row {
    transition: background-color 0.15s;
}

.recommendation-row:hover {
    background-color: #F0FDF4;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .deadline-alert-panel {
        position: relative;
        top: auto;
    }

    .score-badge {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .timeline-badge {
        width: 55px;
        height: 55px;
    }
}
