/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Landing Page */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.landing-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-card h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5em;
}

.landing-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.student-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.admin-link {
    margin-top: 20px;
}

.admin-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Student Assessment Page */
.assessment-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

.assessment-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.student-info {
    font-size: 1.1em;
}

.student-info span {
    font-weight: 600;
    margin-right: 20px;
}

.timer {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
}

.timer.warning {
    background: var(--warning-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.strand-tabs {
    display: flex;
    background: var(--secondary-color);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.questions-container {
    padding: 30px;
}

.strand-questions {
    display: none;
}

.strand-questions.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.question-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.question-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.options {
    display: grid;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.option.selected {
    background: #e3f2fd;
    border-color: var(--primary-color);
}

.submit-section {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: var(--success-color);
    color: white;
    padding: 15px 50px;
    font-size: 1.2em;
}

.btn-submit:hover {
    background: #219a52;
}

/* Admin Login */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fde8e8;
    color: var(--danger-color);
    border: 1px solid #fbd5d5;
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #34495e;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #34495e;
    color: white;
}

.main-content {
    flex: 1;
    background: #f5f5f5;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--primary-color);
}

.table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-checked {
    background: #d4edda;
    color: #155724;
}

.status-verified {
    background: #cce5ff;
    color: #004085;
}

.btn-view {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-view:hover {
    background: #357abd;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .landing-card {
        padding: 30px 20px;
    }
    
    .landing-card h1 {
        font-size: 2em;
    }
    
    .assessment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-info {
        width: 100%;
    }
    
    .timer {
        width: 100%;
        text-align: center;
    }
    
    .tab {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .questions-container {
        padding: 20px 15px;
    }
    
    .question-item {
        padding: 15px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .option {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    table {
        font-size: 0.85em;
    }
    
    th, td {
        padding: 8px;
    }
}