/* Student Assignment Submission Plugin - Complete Clean CSS */

/* === CORE DASHBOARD STYLES === */
.sas-student-dashboard {
    width: 1350px;
    max-width: 1350px; 
    min-width: 1350px;
    margin: 5px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    visibility: visible;
    opacity: 1;
    transition: none;
    overflow-x: auto;
}

.sas-student-dashboard:not(.loaded) {
    min-height: 600px;
}

.sas-student-dashboard *,
.sas-student-dashboard *:before,
.sas-student-dashboard *:after {
    box-sizing: border-box;
}

.sas-student-dashboard img {
    max-width: 100%;
    height: auto;
}

.sas-student-dashboard a {
    color: #667eea;
    text-decoration: none;
}

.sas-student-dashboard a:hover {
    text-decoration: underline;
}

/* === HEADER === */
.sas-header {
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.sas-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.sas-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* === TAB NAVIGATION === */
.sas-tab-navigation {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    z-index: 10;
}

.sas-tab-button {
    flex: none;
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sas-tab-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.sas-tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.sas-tab-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.sas-tab-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sas-tab-text {
    font-weight: 600;
    min-width: 0;
}

/* === TAB CONTENT === */
.sas-tab-content {
    background: white;
    overflow: hidden;
    width: 100%;
}

.sas-tab-pane {
    display: none;
    padding: 24px;
    background: white;
    animation: fadeIn 0.3s ease-in-out;
    box-sizing: border-box;
}

.sas-tab-pane.active {
    display: block;
    background: white;
}

.sas-tab-pane:not(.active) {
    display: none !important;
}

/* === TAB HEADERS === */
.sas-tab-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    background: transparent;
}

.sas-tab-header h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.sas-tab-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* === LOADING STYLES === */
.sas-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.sas-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* === EMPTY STATE === */
.sas-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.sas-empty-state svg {
    margin-bottom: 20px;
    color: #d1d5db;
}

.sas-empty-state h3 {
    margin: 16px 0 8px 0;
    color: #374151;
    font-size: 20px;
}

.sas-empty-state p {
    margin: 0;
    font-size: 16px;
}

.sas-no-assignments {
    padding: 60px 20px;
}

.sas-assignments-container {
    min-height: 200px;
}

/* === TABLE STYLES === */
.sas-assignments-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.sas-table th,
.sas-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    background: white;
}

.sas-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #000000 !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sas-table tbody tr:hover {
    background-color: #f9fafb;
}

.sas-table tbody tr:last-child td {
    border-bottom: none;
}

/* === ASSIGNMENT CELL STYLES === */
.assignment-title-cell strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 15px;
}

.assignment-subject {
    font-size: 12px;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.assignment-type {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teacher-info {
    line-height: 1.4;
}

.teacher-info strong {
    color: #000000 !important;
    font-weight: 600;
}

.teacher-email {
    display: none !important;
}

.assignment-date {
    line-height: 1.4;
}

.assignment-date strong {
    color: #000000 !important;
    font-weight: 600;
}

.assigned-by {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    font-style: italic;
}

/* === STATUS BADGES === */
.sas-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sas-status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.sas-status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.sas-status-submitted {
    background-color: #d4edda;
    color: #155724;
}

.sas-status-graded {
    background-color: #e3f2fd;
    color: #2196f3;
}

.sas-status-overdue {
    background-color: #ffebee;
    color: #e74c3c;
}

.submission-date,
.completion-date {
    font-size: 12px;
    color: #000000 !important;
    margin-top: 2px;
}

.grade {
    font-size: 12px;
    color: #059669;
    margin-top: 2px;
}

/* === BUTTON STYLES === */
.sas-btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sas-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.sas-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sas-btn-primary {
    background-color: #667eea;
    color: white;
}

.sas-btn-primary:hover {
    background-color: #5a67d8;
    transform: translateY(-1px);
}

.sas-btn-success {
    background-color: #10b981;
    color: white;
}

.sas-btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.sas-btn-secondary {
    background-color: #6b7280;
    color: white;
}

.sas-btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.sas-btn-warning {
    background-color: #f59e0b;
    color: white;
}

.sas-btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

.sas-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.sas-btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.sas-btn-info {
    background-color: #3b82f6;
    color: white;
}

.sas-btn-info:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.sas-btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.sas-btn-outline:hover {
    background: #667eea;
    color: white;
}

.sas-btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

.sas-btn.loading {
    position: relative;
    color: transparent;
}

.sas-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.action-buttons .sas-btn {
    margin: 0;
}

/* === MODAL STYLES === */
.sas-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.sas-modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 10000;
}

.sas-large-modal {
    max-width: 900px;
}

.sas-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sas-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.sas-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.sas-modal-close:hover {
    opacity: 1;
}

.sas-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
}

.sas-modal-body::-webkit-scrollbar {
    width: 6px;
}

.sas-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sas-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sas-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.sas-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f9fafb;
}

/* === FORM STYLES === */
.sas-form-group {
    margin-bottom: 20px;
}

.sas-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.sas-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.sas-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* === FILE UPLOAD STYLES === */
.sas-file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer !important;
    transition: all 0.3s ease;
    background: #f9fafb;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.sas-file-upload-area:hover,
.sas-file-upload-area.drag-over {
    border-color: #6366f1;
    background: #eef2ff;
}

.sas-file-upload-area * {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #6b7280;
    pointer-events: none;
}

.upload-text {
    margin-bottom: 8px;
    pointer-events: none;
}

.upload-text p {
    margin: 8px 0;
    font-size: 16px;
    color: #000000 !important;
    font-weight: 500;
    pointer-events: none;
}

.upload-text strong {
    color: #000000 !important;
    font-weight: 700;
    pointer-events: none;
}

.upload-hint {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* MAKE SURE FILE INPUT IS HIDDEN BUT FUNCTIONAL */
#sas-submission-files {
    display: none !important;
}

/* === SELECTED FILES DISPLAY === */
.sas-selected-files {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.sas-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f9fafb;
    animation: slideIn 0.3s ease-out;
}

.sas-file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.sas-file-icon {
    font-size: 24px;
    margin-right: 12px;
}

.sas-file-details {
    flex: 1;
}

.sas-file-name {
    font-weight: 500;
    color: #111827;
    word-break: break-word;
}

.sas-file-size {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

.sas-file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sas-file-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* === SUBMISSIONS VIEW === */
.submissions-container {
    max-height: 400px;
    overflow-y: auto;
}

.submission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f9fafb;
}

.submission-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    font-size: 24px;
    margin-right: 12px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.file-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.submission-notes {
    font-size: 13px;
    color: #374151;
    margin-top: 8px;
    padding: 8px;
    background: #f3f4f6;
    border-radius: 4px;
}

.submission-grade {
    font-size: 13px;
    margin-top: 8px;
}

.grade-value {
    color: #059669;
    font-weight: bold;
}

.submission-feedback {
    font-size: 13px;
    color: #374151;
    margin-top: 8px;
    padding: 8px;
    background: #fef3c7;
    border-radius: 4px;
}

.submission-actions {
    display: flex;
    gap: 8px;
}

.no-submissions {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

/* === FEEDBACK MODAL === */
.feedback-grade h4 {
    margin: 0 0 16px 0;
    color: #059669;
}

.feedback-content {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.feedback-text {
    line-height: 1.6;
    color: #374151;
}

/* === MESSAGE STYLES === */
.sas-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

.sas-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sas-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.sas-message-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.sas-message-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* === COMING SOON STYLES === */
.sas-coming-soon {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #227aff 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
}

.sas-coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.sas-coming-soon h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
}

.sas-coming-soon p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
}

.sas-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.sas-feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.sas-feature-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.sas-feature-item p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.sas-notify-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sas-notify-section h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.sas-notify-section p {
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.sas-btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sas-btn-outline-white:hover {
    background: white;
    color: #f5576c;
    transform: translateY(-2px);
}

/* === LOGIN REQUIRED STYLES === */
.sas-login-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sas-login-required h3 {
    color: #374151;
    margin-bottom: 16px;
}

.sas-login-required p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* === ASSESSMENT SPECIFIC STYLES === */
.sas-assessments-tab {
    min-height: 400px;
}

.sas-no-assessments {
    padding: 60px 20px;
}

.assessment-title-cell strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 15px;
}

.assessment-description {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.assessment-subject {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

/* === LIVE CLASSES SPECIFIC === */
.sas-live-classes-tab {
    min-height: 400px;
}

.sas-no-classes {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px 0;
}

.sas-no-recordings {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px 0;
}

.sas-no-score {
    color: #9ca3af;
    font-size: 18px;
}

/* === UTILITY CLASSES === */
.sas-text-center { text-align: center; }
.sas-text-left { text-align: left; }
.sas-text-right { text-align: right; }
.sas-hidden { display: none !important; }
.sas-visible { display: block !important; }
.sas-flex { display: flex; }
.sas-flex-center { display: flex; align-items: center; justify-content: center; }

.sas-mt-0 { margin-top: 0; }
.sas-mt-1 { margin-top: 8px; }
.sas-mt-2 { margin-top: 16px; }
.sas-mt-3 { margin-top: 24px; }

.sas-mb-0 { margin-bottom: 0; }
.sas-mb-1 { margin-bottom: 8px; }
.sas-mb-2 { margin-bottom: 16px; }
.sas-mb-3 { margin-bottom: 24px; }

.sas-p-1 { padding: 8px; }
.sas-p-2 { padding: 16px; }
.sas-p-3 { padding: 24px; }

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1300px) {
    .sas-student-dashboard {
        width: 1200px;
        max-width: 1200px;
        min-width: 1200px;
    }
    
    .sas-tab-button {
        width: 384px;
        min-width: 384px;
        max-width: 384px;
    }
}

@media (max-width: 1250px) {
    .sas-student-dashboard {
        width: 1150px;
        max-width: 1150px;
        min-width: 1150px;
    }
    
    .sas-tab-button {
        width: 370px;
        min-width: 370px;
        max-width: 370px;
    }
}

@media (max-width: 1200px) {
    .sas-student-dashboard {
        width: 1000px;
        max-width: 1000px;
        min-width: 1000px;
    }
    
    .sas-tab-button {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 1050px) {
    .sas-student-dashboard {
        width: 95%;
        max-width: 95%;
        min-width: 900px;
    }
    
    .sas-tab-button {
        width: calc((100% - 40px) / 3);
        min-width: 280px;
        max-width: 320px;
    }
}

@media (max-width: 950px) {
    .sas-student-dashboard {
        width: 90%;
        max-width: 90%;
        min-width: 320px;
        padding: 16px;
    }
    
    .sas-header {
        padding: 24px 20px;
    }
    
    .sas-header h2 {
        font-size: 24px;
    }
    
    .sas-tab-navigation {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
    }
    
    .sas-tab-button {
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 12px 16px;
        justify-content: flex-start;
        font-size: 12px;
    }
    
    .sas-tab-icon {
        font-size: 16px;
    }
    
    .sas-tab-text {
        font-size: 12px;
    }
    
    .sas-tab-pane {
        padding: 16px;
    }
    
    .sas-table,
    .sas-table thead,
    .sas-table tbody,
    .sas-table th,
    .sas-table td,
    .sas-table tr {
        display: block;
    }
    
    .sas-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .sas-table tr {
        border: 1px solid #e5e7eb;
        margin-bottom: 12px;
        padding: 16px;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .sas-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .sas-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #374151;
    }
    
    .sas-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .sas-modal-header,
    .sas-modal-body,
    .sas-modal-footer {
        padding: 16px;
    }
    
    .sas-feature-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons .sas-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .sas-file-upload-area {
        padding: 30px 15px;
        min-height: 100px;
    }
    
    .upload-text p {
        font-size: 14px;
    }
    
   .upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #6b7280;
}
    
    .sas-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .sas-file-item {
        padding: 10px;
    }
    
    .sas-file-name {
        font-size: 13px;
    }
    
    .sas-file-size {
        font-size: 12px;
    }
}

/* === BROWSER COMPATIBILITY === */
@-moz-document url-prefix() {
    .sas-spinner {
        border-top-color: transparent;
    }
}

@supports (-webkit-appearance: none) {
    .sas-file-upload-area {
        -webkit-appearance: none;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .sas-tab-button.active {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
    
    .sas-btn-primary {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}

/* === PRINT STYLES === */
@media print {
    .sas-tab-navigation,
    .sas-btn,
    .sas-modal-header,
    .sas-modal-footer {
        display: none !important;
    }
    
    .sas-modal-body {
        padding: 0;
    }
    
    .sas-student-dashboard {
        box-shadow: none;
        padding: 0;
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
    }
}