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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #57bec5, #4a9cae);
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 20px;
}

.page.active {
    display: block;
}

.logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.logo-small {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Login Page */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-content {
    width: 100%;
    max-width: 448px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    text-align: center;
    margin-bottom: 32px;
}

.login-title h1 {
    color: white;
    font-size: 30px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.btn-login {
    width: 100%;
    background: white;
    color: #57bec5;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s;
}

.btn-login:active {
    transform: scale(0.95);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 0;
}

.back-btn:active {
    opacity: 0.7;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-text h1 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.header-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Stats Box */
.stats-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.stats-box span {
    color: white;
    font-size: 14px;
}

.date-input {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 6px 10px;
    color: white;
    font-size: 14px;
    outline: none;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* List Container */
.list-container {
    padding: 0 24px;
}

.list-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s;
    text-align: left;
}

.list-item:active {
    transform: scale(0.98);
}

.list-item-content h3 {
    color: #57bec5;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.list-item-content p {
    color: #666;
    font-size: 14px;
}

.list-item-content small {
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.chevron {
    color: #57bec5;
    font-size: 24px;
}

/* Checkbox Items */
.checkbox-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s, background 0.2s;
}

.checkbox-item:active {
    transform: scale(0.98);
    background: #4a9cae;
}


.checkbox-input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #16a34a;
}

.checkbox-input:disabled {
    cursor: not-allowed;
}

.member-name {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #374151;
}

.member-name.checked {
    color: #16a34a;
    font-weight: 500;
}

/* Bottom Actions */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
}

.btn-primary {
    width: 100%;
    background: white;
    color: #57bec5;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s;
}

.btn-secondary:active {
    transform: scale(0.95);
}

/* Icons */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.absence-list {
    padding-bottom: 140px;
}