/* Base - Large readable text */
html {
    height: 100%;
}

body {
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Navbar */
.navbar {
    padding: 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
}

/* ========================================
   Senior Dashboard - Big Buttons
   ======================================== */

.checkin-btn {
    width: 200px;
    height: 200px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid transparent;
}

.checkin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.checkin-btn i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Status colors */
.btn-ok {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-ok:hover {
    background-color: #218838;
    color: white;
}

.btn-call {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-call:hover {
    background-color: #e0a800;
    color: #212529;
}

.btn-visit {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-visit:hover {
    background-color: #138496;
    color: white;
}

.btn-sick {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-sick:hover {
    background-color: #c82333;
    color: white;
}

/* ========================================
   Family Dashboard - Status Cards
   ======================================== */

.senior-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.senior-card:hover {
    transform: translateY(-5px);
}

.senior-card .card-header {
    border-radius: 15px 15px 0 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.status-badge {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white !important;
    font-weight: 500;
}

.status-badge.bg-warning {
    color: #212529 !important;
}

/* Status indicator colors */
.status-ok {
    background-color: #d4edda;
    border-color: #28a745;
}

.status-ok .card-header {
    background-color: #28a745;
    color: white;
}

.status-call {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.status-call .card-header {
    background-color: #ffc107;
    color: #212529;
}

.status-visit {
    background-color: #d1ecf1;
    border-color: #17a2b8;
}

.status-visit .card-header {
    background-color: #17a2b8;
    color: white;
}

.status-sick {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.status-sick .card-header {
    background-color: #dc3545;
    color: white;
}

.status-missed {
    background-color: #f5c6cb;
    border: 3px solid #dc3545;
}

.status-missed .card-header {
    background-color: #dc3545;
    color: white;
}

.status-waiting {
    background-color: #e9ecef;
    border-color: #6c757d;
}

.status-waiting .card-header {
    background-color: #6c757d;
    color: white;
}

/* ========================================
   Forms - Large inputs
   ======================================== */

.form-control {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.form-select {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}

.btn-lg {
    font-size: 1.3rem;
    padding: 1rem 2rem;
}

/* ========================================
   Invite Code Display
   ======================================== */

.invite-code {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.2rem;
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 2px dashed #6c757d;
}

/* ========================================
   Landing Page
   ======================================== */

.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 5rem 0;
    border-radius: 0 0 50px 50px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.9;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.feature-card i {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
}

/* ========================================
   History Table
   ======================================== */

.table {
    font-size: 1.1rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* ========================================
   Alerts and Notifications
   ======================================== */

.alert {
    font-size: 1.1rem;
    border-radius: 10px;
}

.alert-missed {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ========================================
   Disclaimer Box
   ======================================== */

.disclaimer-box {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    font-size: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

/* ========================================
   Confirmation Message (after check-in)
   ======================================== */

.confirmation {
    text-align: center;
    padding: 3rem;
    background-color: #d4edda;
    border-radius: 20px;
    margin: 2rem 0;
}

.confirmation i {
    font-size: 5rem;
    color: #28a745;
}

.confirmation h2 {
    font-size: 2rem;
    margin-top: 1rem;
}

/* ========================================
   Streak Counter
   ======================================== */

.streak {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
}

.streak i {
    margin-right: 0.5rem;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .checkin-btn {
        width: 150px;
        height: 150px;
        font-size: 1rem;
    }
    
    .checkin-btn i {
        font-size: 2rem;
    }
    
    .invite-code {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
}


.text-large {
    font-size: 1.3rem;
}

.text-xlarge {
    font-size: 1.5rem;
}

.mt-6 {
    margin-top: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

/* Disabled check-in buttons */
.checkin-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.checkin-btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}