/* Darspath LMS Public Styles */

/* General Styles */
.darspath-registration-form,
.darspath-login-form,
.darspath-teacher-dashboard,
.darspath-student-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin: 15px 0;
}

.form-message .success {
    color: #28a745;
    background: #d4edda;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.form-message .error {
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Buttons */
.darspath-button {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.darspath-button:hover {
    background: #005177;
}

.darspath-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.darspath-button-secondary {
    background: #6c757d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.darspath-button-secondary:hover {
    background: #5a6268;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 28px;
}

.logout-button {
    color: #dc3545;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: all 0.3s;
}

.logout-button:hover {
    background: #dc3545;
    color: #fff;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #f5f5f5;
}

.tab-button.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Classes Table */
.classes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.classes-table th,
.classes-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.classes-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.classes-table button {
    margin-right: 5px;
    padding: 6px 12px;
    font-size: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-publish {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-draft {
    background: #e2e3e5;
    color: #383d41;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.class-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.3s;
}

.class-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.class-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.class-teacher {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.class-excerpt {
    margin: 15px 0;
    color: #333;
    line-height: 1.6;
}

.class-enrollments {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-filters input,
.search-filters select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-filters button {
    flex: 0 0 auto;
}

/* Enrolled Classes List */
.enrolled-classes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.enrolled-class-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.enrolled-class-item h3 {
    margin: 0 0 10px 0;
}

.enrolled-class-item .class-content {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

/* Modal Styles */
.darspath-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .classes-table {
        font-size: 14px;
    }
    
    .classes-table th,
    .classes-table td {
        padding: 8px;
    }
}