/* Student Blog Approval - Frontend Styles */

.sba-blog-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sba-blog-form-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.sba-form-group {
    margin-bottom: 20px;
}

.sba-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.sba-form-group .required {
    color: #d63638;
}

.sba-form-group input[type="text"],
.sba-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.sba-form-group input[type="text"]:focus,
.sba-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.sba-help-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.sba-submission-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.sba-submission-info p {
    margin: 0 0 10px 0;
    color: #333;
}

.sba-submission-info ul {
    margin: 0;
    padding-left: 20px;
}

.sba-submission-info li {
    margin-bottom: 5px;
    color: #666;
}

.sba-form-actions {
    text-align: center;
    margin-top: 30px;
}

.sba-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 150px;
}

.sba-submit-btn:hover {
    background: #005a87;
}

.sba-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#sba-form-messages {
    margin-top: 20px;
}

.sba-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.sba-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Student Dashboard Styles */
.sba-student-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.sba-dashboard-header h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.sba-dashboard-header p {
    color: #666;
    margin-bottom: 30px;
}

.sba-dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sba-stat-card {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #0073aa;
}

.sba-stat-card.sba-stat-pending {
    border-top-color: #f39c12;
}

.sba-stat-card.sba-stat-approved {
    border-top-color: #27ae60;
}

.sba-stat-card.sba-stat-rejected {
    border-top-color: #e74c3c;
}

.sba-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.sba-stat-label {
    color: #666;
    font-size: 14px;
}

.sba-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sba-empty-state h4 {
    color: #333;
    margin-bottom: 10px;
}

.sba-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

.sba-posts-list h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.sba-posts-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sba-posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.sba-posts-table th,
.sba-posts-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sba-posts-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.sba-posts-table tr:hover {
    background: #f8f9fa;
}

.sba-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sba-status.sba-status-pending {
    background: #fff3cd;
    color: #856404;
}

.sba-status.sba-status-approved {
    background: #d1ecf1;
    color: #0c5460;
}

.sba-status.sba-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.sba-rejection-reason {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.sba-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sba-btn:hover {
    background: #005a87;
    color: white;
}

.sba-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.sba-btn-primary {
    background: #0073aa;
}

.sba-btn-view {
    background: #28a745;
}

.sba-btn-edit {
    background: #ffc107;
    color: #212529;
}

.sba-btn-edit:hover {
    background: #e0a800;
    color: #212529;
}

.sba-waiting {
    color: #666;
    font-style: italic;
}

.sba-dashboard-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.sba-help-section h5 {
    color: #333;
    margin-bottom: 15px;
}

.sba-help-section ul {
    color: #666;
    line-height: 1.6;
}

.sba-help-section li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sba-blog-form-container,
    .sba-student-dashboard {
        padding: 15px;
    }
    
    .sba-dashboard-stats {
        flex-direction: column;
    }
    
    .sba-posts-table {
        overflow-x: auto;
    }
    
    .sba-posts-table table {
        min-width: 600px;
    }
}
