/**
 * Frontend Dashboard Styles
 */

.lecturer-frontend-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    padding: 30px;
    border-bottom: 2px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.dashboard-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-welcome {
    font-size: 14px;
    color: #666;
}

.dashboard-logout-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #d63638;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-logout-btn:hover {
    background: #b32d2e;
    color: #fff;
    text-decoration: none;
}

.dashboard-nav {
    display: flex;
    gap: 10px;
}

.dashboard-nav a {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.dashboard-content {
    padding: 30px;
}

/* Form Styles */
.lecturer-form {
    max-width: 800px;
}

.form-section {
    background: #fff;
}

.form-section h2 {
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #d63638;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Department Checkboxes */
.department-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-label:hover {
    background: #f5f5f5;
    border-color: rgb(221,153,51);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: rgb(221,153,51);
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: rgb(221,153,51);
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(221, 153, 51, 0.1);
    border-color: rgb(221,153,51);
}

/* Fallback for older browsers - use JavaScript to add class */
.checkbox-label.checked {
    background: rgba(221, 153, 51, 0.1);
    border-color: rgb(221,153,51);
}

.form-group .description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Image Upload */
.image-upload-wrapper {
    margin-top: 10px;
}

.current-image {
    margin-bottom: 15px;
}

.current-image img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
}

.remove-image {
    margin-top: 10px;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .button {
    margin-right: 10px;
}

/* Table Styles */
.lecturers-list {
    overflow-x: auto;
}

.lecturers-list table {
    width: 100%;
    border-collapse: collapse;
}

.lecturers-list th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.lecturers-list td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.lecturers-list td img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.lecturers-list .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #999;
}

.status-publish {
    color: #00a32a;
    font-weight: 600;
}

.status-draft {
    color: #d63638;
    font-weight: 600;
}

.status-pending {
    color: #dba617;
    font-weight: 600;
}

/* Delete Confirmation */
.delete-confirmation {
    max-width: 600px;
    padding: 30px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.delete-confirmation h2 {
    margin: 0 0 15px 0;
    color: #d63638;
}

.delete-confirmation p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Messages */
.notice {
    padding: 12px 20px;
    margin: 20px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.notice-success {
    background: #d4edda;
    border-color: #00a32a;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-color: #d63638;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .lecturer-frontend-dashboard {
        margin: 20px 10px;
        padding: 0;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 1.5em;
    }
    
    .dashboard-user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-nav {
        flex-direction: column;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .lecturers-list {
        overflow-x: scroll;
    }
    
    .lecturers-list table {
        font-size: 14px;
    }
    
    .lecturers-list th,
    .lecturers-list td {
        padding: 8px;
    }
}

