/**
 * Portal Pages Custom Styles
 * Add to kadence-child theme
 */

/* Portal Container */
.portal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar Styles - Student Portal */
.student-portal .portal-sidebar {
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Sidebar Styles - Staff Portal */
.staff-portal .portal-sidebar {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(26, 71, 42, 0.3);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.portal-sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.portal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #800000;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.staff-portal .portal-avatar {
    color: #1a472a;
}

.portal-user-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.portal-user-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.portal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-nav li:last-child {
    border-bottom: none;
}

.portal-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portal-nav a:hover,
.portal-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    padding-left: 30px;
}

.portal-nav a::before {
    content: "➤";
    margin-right: 12px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Main Content Styles */
.portal-main {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.portal-welcome {
    margin-bottom: 30px;
}

.portal-welcome h2 {
    color: #800000;
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.staff-portal .portal-welcome h2 {
    color: #1a472a;
}

.portal-welcome p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #800000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-portal .stat-card {
    border-left-color: #1a472a;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.stat-card-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.stat-card-value {
    color: #800000;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.staff-portal .stat-card-value {
    color: #1a472a;
}

.stat-card-label {
    color: #999;
    font-size: 0.85rem;
    margin: 5px 0 0 0;
}

/* Recent Activity Section */
.portal-section {
    margin-bottom: 30px;
}

.portal-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-item strong {
    color: #800000;
}

.staff-portal .activity-item strong {
    color: #1a472a;
}

/* Quick Links/Actions */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-link-btn {
    display: block;
    padding: 15px;
    background: #800000;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.staff-portal .quick-link-btn {
    background: #1a472a;
}

.quick-link-btn:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
    color: #fff;
}

.staff-portal .quick-link-btn:hover {
    background: #2d5a3d;
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-sidebar {
        position: relative;
        top: 0;
    }
    
    .stat-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
