/* Modern Professional Arabic Style Sheet - Enhanced Version */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #007bff;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f5f7fa;
    background-image: url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png');
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(26, 42, 58, 0.8)),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), #1a2a3a);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(10deg);
}

.school-name {
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
}

.school-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.logo-container:hover .school-name::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: right 0.3s ease;
}

.nav-menu a:hover::before {
    right: 0;
}

.nav-menu a i {
    transition: transform 0.3s ease;
}

.nav-menu a:hover i {
    transform: scale(1.2);
}

/* Main Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: -50px auto 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Arabic Decorative Elements */
.container::before,
.container::after {
    position: absolute;
    font-size: 3rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: 'Cairo', sans-serif;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.container::before {
    content: '﴾';
    top: 20px;
    left: 20px;
}

.container::after {
    content: '﴿';
    bottom: 20px;
    right: 20px;
}

.container:hover::before,
.container:hover::after {
    opacity: 0.3;
}

/* Headings */
h2, h3 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

h2:hover::after, h3:hover::after {
    width: 120px;
}

/* Enhanced Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 0;
    background: var(--secondary-color);
    transition: height 0.3s ease;
}

.form-section:hover::before {
    height: 100%;
}

.form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.form-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Standardized Input Styles */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    margin: 0;
    border: 2px solid #e0e3e7;
    border-radius: var(--border-radius);
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

/* For inputs with icons */
.input-with-icon {
    padding-right: 40px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input:focus + .input-icon {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.2);
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.form-section:hover label {
    color: var(--primary-color);
}

/* Form Grid Layout */
.form-section > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

/* Enhanced Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    min-width: 600px;
}

table::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,123,255,0.05), transparent);
    pointer-events: none;
}

th, td {
    border: 1px solid #e9ecef;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s ease;
    word-break: keep-all;
}

th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    font-size: 17px;
    position: relative;
}

th::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

th:hover::after {
    width: 100%;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #f1f5f9;
}

/* Table Inputs - Standardized */
td input {
    width: calc(100% - 10px);
    padding: 10px;
    margin: 0 auto;
    display: block;
    text-align: center;
    border: 1px solid #e0e3e7;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
    min-width: 50px;
    max-width: 100%;
}

td input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    transform: scale(1.02);
}

/* Enhanced Submit Button with Document Icon */
button[type="submit"] {
    background: linear-gradient(to right, var(--accent-color), #2980b9);
    color: white;
    padding: 16px;
    margin: 30px 0 10px 0;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    transition: right 0.3s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(to right, #2980b9, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

button[type="submit"]:hover::before {
    right: 0;
}

button[type="submit"]:active {
    transform: translateY(1px);
}

/* Document icon styles */
button[type="submit"] i.fa-file-alt {
    transition: transform 0.3s ease;
}

button[type="submit"]:hover i.fa-file-alt {
    transform: translateX(5px);
}
/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    background: linear-gradient(to right, var(--accent-color), #2980b9);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
}

/* Responsive Design */
@media (max-width: 992px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        min-width: 100px;
        padding: 12px 8px;
        font-size: 14px;
    }
    
    td input {
        width: 80%;
        padding: 8px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 250px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 10px 0;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    .nav-menu a {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .logo {
        height: 50px;
    }
    
    .school-name {
        font-size: 1.3rem;
    }
    
    .container {
        width: 95%;
        padding: 20px;
        margin-top: -30px;
    }
    
    input, select {
        width: 100%;
        padding: 10px 12px;
    }
    
    .form-section > div {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    button[type="submit"] {
        padding: 14px;
        font-size: 16px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    h2, h3 {
        font-size: 1.3rem;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .container {
        padding: 15px;
    }
}

/* Form Validation Styles */
.input-error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
}

.input-success {
    border-color: var(--success-color) !important;
}

.success-message {
    color: var(--success-color);
    font-size: 0.8rem;
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
}

/* Animated Form Sections */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section {
    animation: fadeIn 0.5s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

/* Additional tutorial page styles */
.tutorial-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(26, 42, 58, 0.8)),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
}

.tutorial-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tutorial-sidebar {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 20px;
}

.tutorial-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-sidebar li {
    margin-bottom: 10px;
}

.tutorial-sidebar a {
    display: block;
    padding: 12px 15px;
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.tutorial-sidebar a:hover,
.tutorial-sidebar a.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--secondary-color);
}

.tutorial-sidebar a i {
    margin-left: 8px;
}

.tutorial-content {
    flex: 1;
}

.tutorial-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tutorial-section h2 {
    text-align: right;
    margin-bottom: 25px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-section h2 i {
    color: var(--secondary-color);
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tutorial-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--secondary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary-color);
    margin-top: 5px;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.feature-list li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px;
}

.feature-list i {
    color: var(--accent-color);
    position: absolute;
    right: 0;
    top: 4px;
}

.instruction-list {
    padding-right: 20px;
    margin: 15px 0;
}

.instruction-list li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 15px;
}

.instruction-list li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
}

.tutorial-image {
    margin: 25px 0;
    text-align: center;
}

.tutorial-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.note-box {
    background: #f8f9fa;
    border-right: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.note-box i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.tutorial-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.tutorial-table th,
.tutorial-table td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid #e9ecef;
}

.tutorial-table th {
    background: var(--secondary-color);
    color: white;
}

.tutorial-table tr:nth-child(even) {
    background: #f8fafc;
}

@media (max-width: 992px) {
    .tutorial-container {
        flex-direction: column;
    }
    
    .tutorial-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .tutorial-section {
        padding: 20px;
    }
    
    .tutorial-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
/* Enhanced User Info & Logout Button */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px 8px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-left: 15px; /* Space from other nav items */
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-info:hover .user-avatar {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.user-info:hover .user-name {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Logout Button */
.logout-btn {
    background: linear-gradient(135deg, 
                rgba(220, 53, 69, 0.9) 0%, 
                rgba(200, 35, 51, 0.9) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 
        0 3px 12px rgba(220, 53, 69, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(220, 53, 69, 1) 0%, 
                rgba(190, 30, 45, 1) 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.logout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 5px 18px rgba(220, 53, 69, 0.45),
        0 7px 10px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover::before {
    opacity: 1;
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 8px rgba(220, 53, 69, 0.35),
        0 4px 6px rgba(0, 0, 0, 0.08);
}

.logout-btn i {
    transition: all 0.3s ease;
    transform: translateX(0);
    opacity: 0.9;
    font-size: 1rem;
}

.logout-btn:hover i {
    transform: translateX(-4px);
    opacity: 1;
}

/* Pulse animation for attention */
@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4),
                    0 5px 18px rgba(220, 53, 69, 0.45);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0),
                    0 5px 18px rgba(220, 53, 69, 0.45);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0),
                    0 5px 18px rgba(220, 53, 69, 0.45);
    }
}

.logout-btn.pulse {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-info {
        padding: 6px 12px;
        margin-left: 0;
    }
    
    .user-name {
        display: none;
    }
    
    .logout-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}
 /* Remove arrows/spinners from number inputs */
 input[type="number"]::-webkit-outer-spin-button,
 input[type="number"]::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
 }
 
 /* Firefox */
 input[type="number"] {
   -moz-appearance: textfield;
 }
 
 /* Style for the score inputs */
 .table-responsive input[type="number"] {
   width: 50px;
   text-align: center;
 }

 /* Add these styles to align tables under their headings */
.form-section .sub-section {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-section .sub-section h4 {
    text-align: right;
    margin-bottom: 15px;
    padding-right: 15px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    width: 100%;
    align-self: flex-end; /* Align to the right in RTL */
}

.form-section .sub-section .table-responsive {
    width: 100%;
    margin: 0;
    align-self: flex-end; /* Align to the right in RTL */
}

.test-table {
    margin-right: 0;
    margin-left: auto; /* Push table to align with heading */
}

/* Remove any default padding/margin that might cause misalignment */
.table-responsive {
    padding: 0;
}

/* Ensure tables don't have any unexpected spacing */
table {
    border-spacing: 0;
    border-collapse: collapse;
}
 /* Style for disabled inputs */
input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

/* Specific style for total fields */
.disabled-total {
    font-weight: bold;
    background-color: #e9e9e9;
}


/* Add this to your CSS file */
#schoolStats {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 1px solid #e0e3e7;
    transition: all 0.3s ease;
}

#schoolStats:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Update your progress bar styles */
.progress-container {
    width: 100%;
    height: 28px;
    background-color: #f1f3f5;
    border-radius: 14px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
            #00b4d8 0%, 
            #0096c7 50%, 
            #0077b6 100%);
    border-radius: 14px;
    text-align: center;
    color: white;
    line-height: 28px;
    font-size: 14px;
    font-weight: bold;
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressAnimation 1s linear infinite;
}

@keyframes progressAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

.student-count {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0;
}

.student-count span {
    color: #3498db;
    font-weight: 700;
}

.student-count span:last-child {
    color: #e74c3c;
}

