/* Apoorui LMS Student Dashboard Styles */

.apoorui-student-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Expiration Warning */
.expiration-warning {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

.expiration-warning.warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.expiration-warning.critical {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
    font-size: 18px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.dashboard-header h1 {
    margin: 0 0 30px;
    font-size: 32px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-box h3 {
    margin: 0 0 10px;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box p {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

/* Navigation Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

/* Session Cards */
.live-sessions-list,
.past-sessions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.session-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.session-card.live {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #ffe8e8 100%);
}

.session-icon {
    font-size: 14px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 10px;
}

.session-card h3 {
    margin: 10px 0;
    color: #333;
    font-size: 18px;
}

.session-date {
    color: #6c757d;
    font-size: 14px;
    margin: 10px 0;
}

.session-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #667eea;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.session-link:hover {
    background: #5568d3;
}

.session-card.live .session-link {
    background: #dc3545;
}

.session-card.live .session-link:hover {
    background: #c82333;
}

/* Materials */
.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.material-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #43e97b;
}

.material-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.material-card h3 {
    color: #333;
    margin: 15px 0;
    font-size: 16px;
}

.material-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #43e97b;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.material-link:hover {
    background: #38d46a;
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.profile-info,
.profile-activity {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-info h3,
.profile-activity h3 {
    margin-top: 0;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.profile-info p,
.profile-activity p {
    margin: 15px 0;
    color: #495057;
    line-height: 1.6;
}

.profile-info strong,
.profile-activity strong {
    color: #333;
    display: inline-block;
    min-width: 120px;
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    border-top: 2px solid #e9ecef;
}

.logout-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #6c757d;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #5a6268;
}

/* Login Form */
.apoorui-login-form {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.apoorui-login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Pending/Expired Messages */
.apoorui-pending-message,
.apoorui-expired-message {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.apoorui-pending-message h2 {
    color: #ffc107;
    margin-bottom: 20px;
}

.apoorui-expired-message h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.apoorui-pending-message p,
.apoorui-expired-message p {
    color: #495057;
    line-height: 1.8;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apoorui-student-dashboard {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 25px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .live-sessions-list,
    .past-sessions-list,
    .materials-list {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
    }
}

/* Registration Form */
.apoorui-registration-form {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.apoorui-registration-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.apoorui-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #c3e6cb;
}

.apoorui-form .form-group {
    margin-bottom: 20px;
}

.apoorui-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.apoorui-form input[type="text"],
.apoorui-form input[type="email"],
.apoorui-form input[type="tel"],
.apoorui-form input[type="password"],
.apoorui-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.apoorui-form input:focus,
.apoorui-form select:focus {
    outline: none;
    border-color: #667eea;
}

.apoorui-submit-btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apoorui-submit-btn:hover {
    background: #5568d3;
}
