/* Child Portal CSS - Clean & Professional */

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.child-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR STYLES */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
    padding: 0;
    align-self: center;
    margin-top: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.content-area {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* DASHBOARD */
.child-dashboard h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.dashboard-section {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-section h3 {
    color: #764ba2;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.dashboard-section ul {
    list-style: none;
}

.dashboard-section li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    font-weight: 500;
}

.quick-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #667eea;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

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

/* BUTTONS */
.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.3s;
    text-align: center;
    min-height: 44px;
    line-height: 1.2;
}

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

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* ALERTS */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 16px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* MOOD CHECK IN */
.mood-checkin {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mood-checkin h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.mood-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.mood-option {
    display: flex;
    align-items: center;
}

.mood-option input[type="radio"] {
    display: none;
}

.mood-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    border: 3px solid transparent;
}

.mood-label:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.mood-option input[type="radio"]:checked + .mood-label {
    border-color: #667eea;
    background-color: #e7f3ff;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.mood-emoji {
    font-size: 3rem;
    min-width: 4rem;
    text-align: center;
}

.mood-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* MOOD COLOR CODING */
.mood-option input[type="radio"]:checked + .mood-5 {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.mood-option input[type="radio"]:checked + .mood-4 {
    border-color: #5cb85c;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
}

.mood-option input[type="radio"]:checked + .mood-3 {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.mood-option input[type="radio"]:checked + .mood-2 {
    border-color: #fd7e14;
    background: linear-gradient(135deg, #ffe5d0 0%, #ffd8b8 100%);
}

.mood-option input[type="radio"]:checked + .mood-1 {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* WISHES, ACHIEVEMENTS, MESSAGES */
.wishes-feelings, .achievements, .message-request, .my-space {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wishes-feelings h2, .achievements h2, .message-request h2, .my-space h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.add-entry, .add-achievement {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.entries-list, .achievements-list {
    margin-top: 2rem;
}

.entry, .achievement-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.entry h4 {
    color: #764ba2;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    background-color: #667eea;
    color: white;
    margin-left: 0.5rem;
}

.staff-comment {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e7f3ff;
    border-radius: 8px;
    font-style: italic;
}

/* INFO BOX */
.info-box {
    background-color: #e7f3ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* MOBILE RESPONSIVE */
@media (max-width: 767px) {
    .navbar {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        gap: 0;
        z-index: 99;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.95rem;
        display: block;
        width: 100%;
        text-align: left;
        background-color: transparent;
        border-radius: 0;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .child-dashboard h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .dashboard-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-section h3 {
        font-size: 1rem;
    }
    
    .dashboard-section li {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
        color: #2d3748;
        font-weight: 500;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .mood-checkin {
        padding: 1.5rem;
    }
    
    .mood-checkin h2 {
        font-size: 1.5rem;
    }
    
    .mood-options {
        gap: 1rem;
    }
    
    .mood-label {
        gap: 1rem;
        padding: 1rem;
    }
    
    .mood-emoji {
        font-size: 2rem;
        min-width: 3rem;
    }
    
    .mood-text {
        font-size: 1rem;
    }
    
    .wishes-feelings, .achievements, .message-request, .my-space {
        padding: 1.5rem;
    }
    
    .wishes-feelings h2, .achievements h2, .message-request h2, .my-space h2 {
        font-size: 1.25rem;
    }
}
