* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    position: relative;
}

.header {
    padding: 20px 0;
    position: relative;
}

.title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.green {
    color: #1e8449;
}

.orange {
    color: #f47920;
}

.dark {
    color: #232d42;
}

.happy {
    color: #009688;
}

.kids {
    color: #e91e63;
}

.support-icon {
    position: absolute;
    top: 20px;
    right: 10px;
}

.support-icon img {
    width: 40px;
    height: 40px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.scan-box {
    width: 100%;
    aspect-ratio: 1/1;
    border: 3px solid #333;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    background-color: #000;
}

#video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    background-color: #000;
}

#video-container video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    z-index: 1;
}

#video-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 25px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn#start-scan {
    background-color: #f47920;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.powered-by {
    font-weight: 700;
}

.footer .subtitle {
    font-size: 12px;
    margin: 0;
}

/* Kid Info Page Styles */
.kid-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.kid-name {
    font-size: 42px;
    font-weight: 700;
    color: #1e8449;
    margin: 20px 0;
}

.kid-details {
    width: 100%;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.detail-label {
    font-weight: 600;
    font-size: 18px;
}

.detail-value {
    font-size: 18px;
}

.guardian-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.guardian-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guardian-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 5px;
    overflow: hidden;
    background-color: #eaf2f8;
}

.guardian-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guardian-label {
    margin-top: 8px;
    font-size: 16px;
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.kids-in-btn {
    background-color: #f47920;
    color: white;
    padding: 12px 0;
    width: 45%;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

.kids-out-btn {
    background-color: #e91e63;
    color: white;
    padding: 12px 0;
    width: 45%;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

/* Welcome/Goodbye Page */
.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.robot-image {
    max-width: 200px;
    margin-bottom: 30px;
}

.welcome-text {
    font-size: 48px;
    font-weight: 700;
    color: #1e8449;
    margin-bottom: 10px;
}

.day-message {
    font-size: 48px;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 10px;
}

.exclamation {
    font-size: 60px;
    font-weight: 700;
    color: #f47920;
}

.back-btn {
    display: block;
    width: 100%;
    background-color: #6d1b5e;
    color: white;
    padding: 15px 0;
    text-align: center;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 40px;
    text-decoration: none;
}

/* Admin Login */
.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-login {
    background-color: #1e8449;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive for smaller screens */
@media (max-width: 480px) {
    .title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 28px;
    }
    
    .kid-name {
        font-size: 32px;
    }
    
    .welcome-text, .day-message {
        font-size: 36px;
    }
    
    .exclamation {
        font-size: 48px;
    }
} 