* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-size: 14px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Scroll Buttons */
.scroll-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-btn:hover {
    transform: scale(1.1);
    background: #45a049;
}

.scroll-up {
    bottom: 90px;
    display: none;
}

.scroll-down {
    bottom: 30px;
}

/* Bottom Action Buttons */
.bottom-actions {
    position: fixed;
    left: 20px;
    bottom: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.action-btn {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn.home {
    background: #FFC107;
    color: #333;
}

.action-btn.share {
    background: #2196F3;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    color: white;
    padding: 25px;
    text-align: center;
}

.header h1 { font-size: 1.6rem; margin-bottom: 8px; }
.header p { opacity: 0.9; font-size: 0.9rem; }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.nav-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.nav-btn.prev { background: #6c757d; color: white; }
.nav-btn.prev:hover { background: #5a6268; }
.nav-btn.next { background: #4CAF50; color: white; }
.nav-btn.next:hover { background: #45a049; }
.nav-btn.disabled { opacity: 0.5; cursor: not-allowed; }

.progress-steps {
    display: flex;
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 80px;
    cursor: pointer;
}

.step .circle {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.step.active .circle { background: #4CAF50; color: white; transform: scale(1.1); }
.step.completed .circle { background: #2196F3; color: white; }
.step .label { font-size: 11px; color: #666; }
.step.active .label { color: #4CAF50; font-weight: bold; }

.section {
    display: none;
    padding: 25px;
    animation: fadeIn 0.5s;
    min-height: 600px;
}

.section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.card h3 {
    color: #2196F3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFC107;
}

.form-group {
    margin-bottom: 15px;
}

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

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin: 3px;
}

.btn-primary { background: #4CAF50; color: white; }
.btn-primary:hover { background: #45a049; }
.btn-secondary { background: #2196F3; color: white; }
.btn-secondary:hover { background: #0b7dda; }
.btn-accent { background: #FFC107; color: #333; }
.btn-accent:hover { background: #ffb300; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-info { background: #17a2b8; color: white; }

.student-table {
    width: 100%;
    overflow-x: auto;
}

.student-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.student-table th, .student-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.student-table th {
    background: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
}

.student-table tr:nth-child(even) { background: #f9f9f9; }

.present-checkbox {
    transform: scale(1.2);
    margin: 0;
}

.day-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

.day-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: #e0e0e0;
    color: #333;
    cursor: pointer;
}

.day-btn.active {
    background: #4CAF50;
    color: white;
}

.student-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.student-card {
    border-radius: 15px;
    padding: 15px;
    color: white;
    transition: transform 0.3s;
    position: relative;
}

.student-card:hover { transform: translateY(-5px); }
.student-card.hero-card { border: 4px solid gold; box-shadow: 0 0 20px rgba(255,215,0,0.5); }

.hero-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: gold;
    color: #333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.hero-announcement {
    background: linear-gradient(135deg, gold, #ffd700);
    color: #333;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.hero-announcement .trophy { font-size: 3rem; }

canvas { max-height: 300px; margin-top: 20px; }

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #4CAF50;
}

.upload-zone {
    border: 2px dashed #4CAF50;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone.drag-over {
    background: #e8f5e9;
    border-color: #2196F3;
}

.file-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    margin: 3px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .student-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .student-cards { grid-template-columns: 1fr; }
    .container { margin: 10px; }
    .section { padding: 15px; }
    .bottom-actions { left: 10px; bottom: 15px; gap: 8px; }
    .action-btn { padding: 8px 15px; font-size: 12px; }
    .scroll-btn { width: 40px; height: 40px; font-size: 18px; }
    .scroll-up { bottom: 80px; }
    .scroll-down { bottom: 25px; }
    .progress-steps { flex-direction: column; gap: 10px; }
    .step { min-width: auto; }
}

@media (max-width: 480px) {
    .student-table { font-size: 10px; }
    .student-table th, .student-table td { padding: 4px; }
    .day-btn { padding: 5px 10px; font-size: 12px; }
}
