* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

body {
    font-family: 'Segoe UI', 'Poppins', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }
.toast.warning { border-left-color: #f59e0b; }

.toast i { font-size: 1.2rem; }
.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }

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

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

/* ========== SCROLL BUTTONS ========== */
.scroll-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    transform: scale(1.1);
}

.scroll-up { bottom: 80px; }
.scroll-down { bottom: 20px; }

/* ========== HEADER ========== */
header {
    background: white;
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area h1 {
    color: #667eea;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.logo-area p {
    color: #666;
    font-size: 0.9rem;
}

.page-share-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* ========== STEP NAVIGATION ========== */
.step-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.step-nav-btn {
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.step-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.step-nav-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========== STEP CONTENT ========== */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ========== STEP CARD ========== */
.step-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* HOVER EFFECT FOR STEP CARD */
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.step-description {
    color: #666;
    margin-bottom: 25px;
    padding-left: 70px;
    font-size: 0.9rem;
}

.step-note {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px 18px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #856404;
}

/* ========== USAGE COUNTER ========== */
.usage-counter-tool {
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    padding: 10px 18px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 15px;
}

.usage-counter-tool i {
    font-size: 1rem;
}

/* ========== FORM ELEMENTS ========== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 70px;
}

.input-group {
    flex: 1;
    min-width: 180px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-secondary {
    background: #f0e6ff;
    color: #764ba2;
    border: 1px solid #d9c2ff;
}

.btn-secondary:hover {
    background: #e0d0fa;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-success {
    background: #25D366;
    color: white;
}

.btn-success:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 12px;
    padding-left: 70px;
    margin-top: 15px;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-next, .btn-prev {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-next {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-next:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-prev {
    background: #f0f0f0;
    color: #555;
}

.btn-prev:hover {
    transform: translateX(-3px);
    background: #e0e0e0;
}

/* ========== STUDENT LIST ========== */
.student-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f9f4ff;
    border-radius: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.student-tag {
    background: white;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid #d9c2ff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.student-tag button {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
}

/* ========== INDICATORS BOX ========== */
.indicators-box {
    background: #f0f7ff;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.indicators-box h4 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

.indicator-item {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #555;
    border: 1px solid #d9c2ff;
}

/* ========== DAILY CHECKLIST ========== */
.daily-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.checklist-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    background: white;
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.checklist-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 8px;
    font-weight: 600;
    position: sticky;
    top: 0;
    text-align: center;
}

.checklist-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.checklist-table tr:hover {
    background: #f9f4ff;
}

.student-name-cell {
    font-weight: 600;
    background: #faf5ff;
    text-align: left !important;
}

.attendance-check, .sel-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

/* ========== FILE UPLOAD ========== */
.file-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 25px;
}

.upload-box {
    flex: 1;
}

.upload-box label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.upload-box input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
}

.upload-box small {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-top: 5px;
}

/* ========== ANALYSIS RESULTS ========== */
.analysis-results {
    margin-top: 25px;
}

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

.student-card {
    background: linear-gradient(135deg, #fff, #faf5ff);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0d0fa;
    transition: all 0.3s;
}

/* HOVER EFFECT FOR STUDENT CARD */
.student-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: white;
}

.student-card:hover h4,
.student-card:hover p,
.student-card:hover .percentage {
    color: white !important;
}

.student-card h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.student-card .percentage {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 10px 0;
}

.hero-card {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid #ffd700;
    position: relative;
}

.hero-card::after {
    content: "🏆";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 2rem;
    transform: rotate(15deg);
}

.chart-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f4ff;
    border-radius: 16px;
}

/* ========== PARENT CARDS ========== */
.parent-cards-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 10px;
}

.parent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f4ff;
    margin: 8px 0;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 10px;
    transition: all 0.3s;
}

.parent-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.parent-item a {
    text-decoration: none;
    padding: 8px 18px;
    background: #25D366;
    color: white;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.parent-item a:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* ========== TEACHER PLAN ========== */
.teacher-plan {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 16px;
}

.activity-item {
    background: white;
    padding: 15px;
    margin: 12px 0;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.activity-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-left-color: white;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #f9f9f9;
    border-radius: 15px;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

/* ========== REACTION SECTION (7 EMOJIS) ========== */
.reaction-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.reaction-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-family: inherit;
}

.reaction-btn:hover {
    transform: scale(1.05);
    background: rgba(102,126,234,0.1);
    border-color: #667eea;
}

.reaction-btn.active {
    background: rgba(102,126,234,0.15);
    border-color: #667eea;
}

.reaction-count {
    font-weight: 600;
    font-size: 0.75rem;
    color: #666;
}

/* ========== SHARE ICONS (SOCIAL MEDIA) ========== */
.share-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
    margin-top: 5px;
}

.share-icons a {
    color: #666;
    transition: all 0.2s;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
}

.share-icons a:hover {
    transform: scale(1.2);
}

.share-icons a:hover .fa-facebook-f { color: #1877f2; }
.share-icons a:hover .fa-twitter { color: #1da1f2; }
.share-icons a:hover .fa-linkedin-in { color: #0077b5; }
.share-icons a:hover .fa-whatsapp { color: #25d366; }
.share-icons a:hover .fa-envelope { color: #ea4335; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-description {
        padding-left: 0;
    }
    
    .form-row {
        padding-left: 0;
    }
    
    .action-buttons {
        padding-left: 0;
        flex-direction: column;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .step-header h2 {
        font-size: 1.2rem;
    }
    
    .step-navigation {
        gap: 6px;
    }
    
    .step-nav-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-table {
        font-size: 0.7rem;
    }
    
    .checklist-table th, .checklist-table td {
        padding: 6px 3px;
    }
    
    .individual-cards {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-next, .btn-prev {
        width: 100%;
        text-align: center;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        right: 15px;
    }
    
    .scroll-up {
        bottom: 70px;
    }
    
    .scroll-down {
        bottom: 15px;
    }
    
    .reaction-section {
        gap: 6px;
    }
    
    .reaction-btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .reaction-section {
        flex-wrap: wrap;
    }
}
