/**
 * Public-facing styles for the Student Portal plugin
 *
 * @since      1.0.0
 * @package    Student_Portal
 * @subpackage Student_Portal/public/css
 */

/* Student Portal Dashboard Styles */
.sp-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sp-dashboard-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sp-dashboard-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

.sp-dashboard-header .sp-welcome-message {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Dashboard Cards Grid */
.sp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sp-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sp-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sp-dashboard-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.sp-dashboard-card h3 .dashicons {
    margin-right: 10px;
    color: #0073aa;
}

.sp-dashboard-card .sp-card-content {
    color: #666;
    line-height: 1.6;
}

.sp-dashboard-card .sp-card-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Buttons */
.sp-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.sp-btn:hover,
.sp-btn:focus {
    background-color: #005a87;
    color: #fff;
    text-decoration: none;
}

.sp-btn-secondary {
    background-color: #666;
}

.sp-btn-secondary:hover {
    background-color: #555;
}

.sp-btn-success {
    background-color: #46b450;
}

.sp-btn-success:hover {
    background-color: #3e9b47;
}

.sp-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.sp-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sp-form h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.sp-form-group {
    margin-bottom: 20px;
}

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

.sp-form-group input[type="text"],
.sp-form-group input[type="email"],
.sp-form-group input[type="password"],
.sp-form-group input[type="number"],
.sp-form-group input[type="date"],
.sp-form-group select,
.sp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.sp-form-group input:focus,
.sp-form-group select:focus,
.sp-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.sp-form-group textarea {
    height: 120px;
    resize: vertical;
}

.sp-form-group .sp-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.sp-form-group.error input,
.sp-form-group.error select,
.sp-form-group.error textarea {
    border-color: #dc3232;
}

.sp-form-group .sp-error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
}

/* Tables */
.sp-table-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.sp-table th,
.sp-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sp-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.sp-table tr:hover {
    background-color: #f8f9fa;
}

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

/* Status badges */
.sp-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sp-status-active {
    background-color: #d4edda;
    color: #155724;
}

.sp-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.sp-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.sp-status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Notifications */
.sp-notification {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.sp-notification-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.sp-notification-error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.sp-notification-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.sp-notification-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* File upload */
.sp-file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.2s;
}

.sp-file-upload:hover {
    border-color: #0073aa;
}

.sp-file-upload.dragover {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.sp-file-upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.sp-file-upload-text {
    color: #666;
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sp-dashboard {
        padding: 15px;
    }
    
    .sp-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sp-dashboard-header,
    .sp-form,
    .sp-table-container {
        padding: 20px;
    }
    
    .sp-table {
        font-size: 14px;
    }
    
    .sp-table th,
    .sp-table td {
        padding: 10px;
    }
    
    .sp-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sp-dashboard-header h1 {
        font-size: 24px;
    }
    
    .sp-form h2 {
        font-size: 20px;
    }
    
    .sp-table th,
    .sp-table td {
        padding: 8px;
        font-size: 12px;
    }
}