/* =========================================
   PORTAL STYLES - Candidate & Employer
   Modern Dashboard Design
   ========================================= */

/* Portal Layout */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.portal-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.portal-main {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A9BFA 0%, #0F3D6D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0F3D6D;
    margin-bottom: 5px;
}

.sidebar-role {
    font-size: 0.85rem;
    color: #64748b;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    padding: 0 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: #f8fafc;
    color: #7A9BFA;
}

.nav-item.active {
    background: #eff6ff;
    color: #7A9BFA;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #7A9BFA;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-badge {
    margin-left: auto;
    background: #13284E;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: #EEF2FF;
    color: #0F3D6D;
}

.stat-icon.green {
    background: #EEF2FF;
    color: #7A9BFA;
}

.stat-icon.orange {
    background: #EEF2FF;
    color: #13284E;
}

.stat-icon.purple {
    background: #EEF2FF;
    color: #0F3D6D;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #0F3D6D;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.stat-change {
    font-size: 0.85rem;
    margin-top: 10px;
}

.stat-change.positive {
    color: #7A9BFA;
}

.stat-change.negative {
    color: #13284E;
}

/* Portal Tables */
.portal-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F3D6D;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-content {
    overflow-x: auto;
}

.portal-table table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    background: #f8fafc;
    padding: 15px 25px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-table td {
    padding: 15px 25px;
    border-top: 1px solid #e5e7eb;
    color: #475569;
}

.portal-table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.reviewed {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.shortlisted {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.closed {
    background: #f1f5f9;
    color: #475569;
}

/* Action Buttons */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #f8fafc;
    border-color: #7A9BFA;
    color: #7A9BFA;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #64748b;
    margin-bottom: 10px;
}

.empty-state p {
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .portal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .portal-sidebar.open {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portal-main {
        padding: 20px 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .portal-table th,
    .portal-table td {
        padding: 12px 15px;
    }
}
