/* Student Portal Styles - Modern & Minimalist */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

#pe-student-app {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    display: flex;
    min-height: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #2c3e50;
    margin: 40px 0;
}

/* Sidebar */
.pe-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #edf2f7;
    padding: 30px 20px;
    flex-shrink: 0;
}

.pe-profile-summary {
    text-align: center;
    margin-bottom: 40px;
}

.pe-avatar img {
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pe-profile-summary h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.pe-profile-summary p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #718096;
}

/* Navigation */
.pe-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pe-nav li {
    margin-bottom: 8px;
}

.pe-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.pe-nav a:hover,
.pe-nav a.active {
    background: #edf2f7;
    color: #2b6cb0;
}

.pe-nav a .dashicons {
    margin-right: 12px;
    font-size: 18px;
    color: #a0aec0;
}

.pe-nav a:hover .dashicons,
.pe-nav a.active .dashicons {
    color: #2b6cb0;
}

.pe-nav-separator {
    height: 1px;
    background: #edf2f7;
    margin: 20px 0;
}

/* Main Content */
.pe-main-content {
    flex-grow: 1;
    padding: 40px;
    background: #f8f9fa;
    overflow-y: auto;
}

/* Headings */
.pe-page-header {
    margin-bottom: 30px;
}

.pe-page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.pe-page-header p {
    color: #718096;
    margin-top: 5px;
}

/* Cards */
.pe-card-summary {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    border: 1px solid #edf2f7;
}

.pe-card-icon {
    width: 48px;
    height: 48px;
    background: #ebf8ff;
    color: #3182ce;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}

.pe-card-data h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.pe-card-data span {
    font-size: 13px;
    color: #718096;
}

/* Grid */
.pe-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Tables */
.pe-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-collapse: collapse;
}

.pe-table th {
    background: #fff;
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a0aec0;
    font-weight: 600;
    border-bottom: 1px solid #edf2f7;
}

.pe-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    font-size: 14px;
}

.pe-table tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.pe-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.pe-btn-primary {
    background: #3182ce;
    color: #fff;
}

.pe-btn-primary:hover {
    background: #2b6cb0;
}

.pe-btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.pe-btn-outline:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.pe-status-active {
    color: #38a169;
    background: #f0fff4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pe-status-suspended {
    color: #d69e2e;
    background: #fffff0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pe-status-cancelled {
    color: #e53e3e;
    background: #fff5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    #pe-student-app {
        grid-template-columns: 1fr;
        /* Stack sidebar and content */
        gap: 0;
    }

    .pe-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px;
        text-align: center;
    }

    .pe-profile-summary {
        margin-bottom: 20px;
    }

    .pe-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .pe-nav li {
        margin: 0;
    }

    .pe-nav a {
        padding: 8px 12px;
        font-size: 13px;
        background: #f8fafc;
        border-radius: 20px;
    }

    .pe-nav-separator {
        display: none;
    }

    .pe-main-content {
        padding: 20px;
    }

    .pe-grid-3 {
        grid-template-columns: 1fr;
    }

    .pe-table-wrapper {
        overflow-x: auto;
    }

    .pe-table {
        min-width: 600px;
        /* Force scroll */
    }

    /* Specific profile fix from screenshot */
    .pe-profile-card {
        padding: 20px;
    }

    .pe-form-grid {
        grid-template-columns: 1fr;
        /* Stack inputs */
        gap: 15px;
    }

    .pe-form-group.full-width {
        grid-column: span 1;
    }
}