/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
    color: #2d3748;
}

/* Header Styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo .logo-content {
    display: flex;
    flex-direction: column;
}

.header-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
}

.header-logo .logo-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #4a5568;
}

/* Footer Styles */
footer {
    background-color: #2d3748;
    color: #ffffff;
    padding: 20px 40px;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}
 .download-btn {
            background-color: #28a745;
            color: white;
        }
        .download-btn:hover {
            background-color: #1e7e34;
        }
footer .copyright {
    color: #e2e8f0;
}

/* Login Container (Existing) */
.login-container {
    max-width: 400px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px auto;
}

/* Login Header (Existing) */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #4a5568;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #718096;
}

/* Login Form (Existing) */
.login-form-container {
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    font-size: 16px;
    padding: 4px;
}

.password-toggle:hover {
    color: #1a73e8;
}

.login-btn {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #1557b0;
}

.login-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

/* Error Message (Existing) */
.error-message {
    background-color: #fff1f2;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Login Footer (Existing) */
.login-footer {
    text-align: center;
    margin-top: 20px;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
}

.login-footer .copyright {
    font-size: 12px;
    color: #a0aec0;
}


/* Main Content Wrapper for Non-Login Pages */
.main-content {
    flex: 1;
    padding: 20px 40px;
}

/* Existing Styles for Other Pages */
/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

.banner {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background-color: #1a73e8;
    color: white;
}

select, input, textarea {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

button {
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #1557b0;
}

.test-area {
    background-color: white;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.timer {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2d3748;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #1a73e8;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #edf2f7;
}

/* Responsive Design */
@media (max-width: 480px) {
    header {
        padding: 12px 20px;
    }

    .header-logo .logo-text {
        font-size: 18px;
    }

    .header-logo .logo-subtitle {
        font-size: 10px;
    }

    .login-container {
        padding: 20px;
        margin: 10px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-btn {
        font-size: 14px;
    }

    footer {
        padding: 16px 20px;
        font-size: 12px;
    }

    .main-content {
        padding: 20px;
    }
}
         .actions a, .actions button {
            margin-right: 10px;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 8px;
            transition: background-color 0.2s;
        }
        .actions a {
            background-color: #1a73e8;
            color: white;
        }
        .actions a:hover {
            background-color: #1557b0;
        }
        .actions a.view-test {
            background-color: #28a745;
        }
        .actions a.view-test:hover {
            background-color: #1e7e34;
        }
        .actions button {
            background-color: #ffc107;
            color: #2d3748;
            border: none;
            cursor: pointer;
        }
        .actions button:hover {
            background-color: #e0a800;
        }
        .actions button.delete-btn {
            background-color: #dc3545;
            color: white;
        }
        .actions button.delete-btn:hover {
            background-color: #c82333;
        }
        .status {
            padding: 4px 10px;
            border-radius: 6px;
            color: white;
            font-weight: 500;
            font-size: 12px;
            display: inline-block;
        }
        .status.upcoming { background-color: #ffa500; }
        .status.ongoing { background-color: #28a745; }
        .status.completed { background-color: #6c757d; }
        .nav-links {
            display: flex;
            gap: 20px;
        }
        .nav-links a {
            color: #1a73e8;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: color 0.2s;
        }
        .nav-links a:hover {
            color: #1557b0;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-content {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            max-width: 500px;
            width: 100%;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        .modal-content h2 {
            margin-bottom: 20px;
            font-size: 20px;
            color: #2d3748;
        }
        .modal-content .form-group {
            margin-bottom: 20px;
        }
        .modal-content textarea {
            resize: vertical;
            min-height: 100px;
        }
        .modal-content .copy-btn {
            background-color: #1a73e8;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 10px;
        }
        .modal-content .copy-btn:hover {
            background-color: #1557b0;
        }
        .message {
            margin-top: 20px;
            padding: 12px;
            border-radius: 6px;
            font-size: 14px;
        }
        .message.success {
            background-color: #e6ffed;
            color: #2d3748;
        }
        .message.error {
            background-color: #fff1f2;
            color: #c53030;
        }
        .search-form {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .search-form input[type="text"] {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 6px;
            width: 300px;
        }
        .search-form button {
            background-color: #1a73e8;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        .search-form button:hover {
            background-color: #1557b0;
        }
        .header-logo {
            display: flex;
            align-items: center;
        }
        .logo-content {
            display: flex;
            flex-direction: column;
        }
        .logo-text {
            font-size: 24px;
            font-weight: bold;
            color: #2d3748;
        }
        .logo-text a {
            color: #2d3748;
            text-decoration: none;
        }
        .logo-text a:hover {
            color: #1a73e8;
        }
        .logo-subtitle {
            font-size: 14px;
            color: #6c757d;
        }
   


       .actions a, .actions button {
            margin-right: 10px;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 8px;
            transition: background-color 0.2s;
        }
        .actions a {
            background-color: #1a73e8;
            color: white;
        }
        .actions a:hover {
            background-color: #1557b0;
        }
        .actions a.view-test {
            background-color: #28a745;
        }
        .actions a.view-test:hover {
            background-color: #1e7e34;
        }
        .actions button {
            background-color: #ffc107;
            color: #2d3748;
            border: none;
            cursor: pointer;
        }
        .actions button:hover {
            background-color: #e0a800;
        }
        .actions button.delete-btn {
            background-color: #dc3545;
            color: white;
        }
        .actions button.delete-btn:hover {
            background-color: #c82333;
        }
        .status {
            padding: 4px 10px;
            border-radius: 6px;
            color: white;
            font-weight: 500;
            font-size: 12px;
            display: inline-block;
        }
        .status.upcoming { background-color: #ffa500; }
        .status.ongoing { background-color: #28a745; }
        .status.completed { background-color: #6c757d; }
        .nav-links {
            display: flex;
            gap: 20px;
        }
        .nav-links a {
            color: #1a73e8;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: color 0.2s;
        }
        .nav-links a:hover {
            color: #1557b0;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-content {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            max-width: 500px;
            width: 100%;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        .modal-content h2 {
            margin-bottom: 20px;
            font-size: 20px;
            color: #2d3748;
        }
        .modal-content .form-group {
            margin-bottom: 20px;
        }
        .modal-content textarea {
            resize: vertical;
            min-height: 100px;
        }
        .modal-content .copy-btn {
            background-color: #1a73e8;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 10px;
        }
        .modal-content .copy-btn:hover {
            background-color: #1557b0;
        }
        .search-form {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .search-form input[type="text"] {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 6px;
            width: 300px;
        }
        .search-form button {
            background-color: #1a73e8;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        .search-form button:hover {
            background-color: #1557b0;
        }
        .header-logo {
            display: flex;
            align-items: center;
        }
        .logo-content {
            display: flex;
            flex-direction: column;
        }
        .logo-text {
            font-size: 24px;
            font-weight: bold;
            color: #2d3748;
        }
        .logo-text a {
            color: #2d3748;
            text-decoration: none;
        }
        .logo-text a:hover {
            color: #1a73e8;
        }
        .logo-subtitle {
            font-size: 14px;
            color: #6c757d;
        }
        .test-details {
            background: #f9f9f9;
            padding: 20px;
            margin: 20px 0;
            border-radius: 5px;
            border: 1px solid #ddd;
        }
        .test-passage {
            background: white;
            padding: 15px;
            margin: 10px 0;
            border-radius: 3px;
            border: 1px solid #ccc;
            line-height: 1.6;
        }
        .test-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 20px 0;
        }
        .meta-item {
            background: white;
            padding: 10px;
            border-radius: 3px;
            border: 1px solid #ddd;
        }
        .meta-label {
            font-weight: bold;
            color: #555;
            margin-bottom: 5px;
        }
        .status {
            padding: 5px 10px;
            border-radius: 3px;
            color: white;
            font-weight: bold;
            display: inline-block;
        }
        .status.upcoming { background: #ffa500; }
        .status.ongoing { background: #28a745; }
        .status.completed { background: #6c757d; }
        .actions {
            margin: 20px 0;
            text-align: center;
        }
        .btn {
            display: inline-block;
            padding: 10px 15px;
            margin: 5px;
            text-decoration: none;
            border-radius: 3px;
            border: none;
            cursor: pointer;
        }
        .btn-primary { background: #007bff; color: white; }
        .btn-secondary { background: #6c757d; color: white; }
        .btn-success { background: #28a745; color: white; }

         .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            margin-bottom: 20px;
            margin-right: 10px;
            transition: background-color 0.2s;
        }

         .main-content {
            min-height: 100vh;
            background-color: #f8f9fa;
        }
        /* .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        } */
        h2 {
            font-size: 24px;
            color: #2d3748;
            margin-bottom: 20px;
        }
        .header-logo {
            display: flex;
            align-items: center;
        }
        .logo-content {
            display: flex;
            flex-direction: column;
        }
        .logo-text {
            font-size: 24px;
            font-weight: bold;
            color: #2d3748;
        }
        .logo-text a {
            color: #2d3748;
            text-decoration: none;
        }
        .logo-text a:hover {
            color: #1a73e8;
        }
        .logo-subtitle {
            font-size: 14px;
            color: #6c757d;
        }
        .nav-links {
            display: flex;
            gap: 20px;
        }
        .nav-links a {
            color: #1a73e8;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: color 0.2s;
        }
        .nav-links a:hover {
            color: #1557b0;
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background-color: #ffffff;
            border-bottom: 1px solid #e2e8f0;
        }
       
        form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            max-width: 600px;
        }
        input[type="text"],
        input[type="number"],
        input[type="datetime-local"],
        select,
        textarea {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-size: 14px;
            width: 100%;
            box-sizing: border-box;
        }
        textarea {
            resize: vertical;
            min-height: 100px;
        }
        button[type="submit"] {
            background-color: #1a73e8;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.2s;
        }
        button[type="submit"]:hover {
            background-color: #1557b0;
        }
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            margin-top: 20px;
            background-color: #1a73e8;
            color: white;
            transition: background-color 0.2s;
        }
        .back-link:hover {
            background-color: #1557b0;
        }
        