body, html {
    margin: 0;
    padding: 0;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    color: #000;
    background: linear-gradient(135deg, #ffffff, #ffe2e5);
}

* {
    box-sizing: border-box;
}


::-webkit-scrollbar {
    -webkit-appearance: none;
}

    ::-webkit-scrollbar:vertical {
        width: 5px;
    }

    ::-webkit-scrollbar:horizontal {
        height: 7px;
    }

::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 7px;
    border: 2px solid #f5f5f5;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}


.swal2-confirm {
    min-width: 100px;
}

#sleepChart {
    height: 420px !important;
}

.container {
    max-width: 1420px;
    padding: 20px 15px;
    margin: 0 auto;
}

img {
    max-width: 100%;
}

.logo {
    width: 420px;
    margin-bottom: 0px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -15px;
    flex-wrap: wrap;
}

.col {
    flex: 0 0 25%;
    padding: 0 25px;
}

.box {
    display: block;
    text-align: center;
    padding: 40px 10px;
    margin-bottom: 25px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 15px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .2);
    transition: all .3s ease-in;
}

    .box:hover {
        box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
    }

.box1 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, rgba(236,255,217,1) 100%);
}

.box2 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, rgba(235,232,255,1) 100%);
}

.box3 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #FFDFCD 100%);
}

.box4 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #FFCEE3 100%);
}

.box5 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #FFDFDF 100%);
}

.box6 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #D0FFDB 100%);
}

.box7 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #D2FFFC 100%);
}

.box8 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #C0E5FF 100%);
}

.box9 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #FEFFCC 100%);
}

.box10 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #C9D1FF 100%);
}

.box11 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #C5FFE3 100%);
}

.box12 {
    background: rgb(242,251,255);
    background: linear-gradient(90deg, rgba(242,251,255,1) 0%, #FFB6B6 100%);
}

/* New Styles for Feature Cards */
.main-header h1 {
    font-weight: 800;
    color: #2c3e50;
}

.main-header .lead {
    color: #5a6a7a;
    font-weight: 400;
}

.feature-card {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .feature-card .card-img-top {
        border-top-left-radius: 15px;
        width: 100%;
        height: 230px !important;
        -o-object-fit: cover;
        object-fit: cover;
        border-top-right-radius: 15px;
    }

    .feature-card .card-body {
        padding: 1.75rem;
    }

    .feature-card .card-title {
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 0.75rem;
    }

    .feature-card .card-text {
        color: #5a6a7a;
        font-size: 0.95rem;
    }

.feature-card-link {
    font-weight: 600;
    text-decoration: none;
    color: teal;
    align-self: flex-start;
    transition: color 0.2s ease;
}

    .feature-card-link:hover {
        color: #0056b3;
    }



/* General Body Styles */
body {
    font-family: 'Nunito', sans-serif;
}

/* Authentication Page Styles */
.auth-body {
    background: linear-gradient(135deg, #ffffff, #ffe2e5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    padding: 20px;
}

.auth-logo {
    width: 80px;
    height: auto;
}

.auth-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
}

.logoimg {
    max-width: 300px;
}

.auth-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #555;
    margin-bottom: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Tab Styles */
.nav-pills .nav-link {
    background-color: #ffe5e8;
    color: #555;
    border-radius: 50px;
    font-weight: 600;
}

    .nav-pills .nav-link.active {
        background-color: #ffffff;
        color: #e64854; /* A blue that matches the button */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Form Input Styles */
.form-control {
    border-radius: 12px;
    /*border: none;*/
    background-color: #fff;
    /*rgba(255, 255, 255, 0.6);*/
    height: 58px; /* Taller inputs */
}

    .form-control:focus {
        background-color: #fff;
        box-shadow: none;
        border: 1px solid #e64854;
    }

.form-floating > label {
    color: #6c757d;
}

.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.6);
    /*border: none;*/
    border-radius: 12px 0 0 12px;
    color: #6c757d;
}

.invalid-feedback {
    margin-top: -0px;
    font-size: 10px;
    padding-bottom: 0px;
    margin-left: 14%;
}

#txtLoginPhone-error {
    margin-top: 0 !important;
    font-size: 11px !important;
    margin-left: 14%;
    padding-bottom: 5px !important;
}

/* Button Styles */
.btn-primary {
    background-color: #e64854;
    border-color: #e64854;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 700;
}

    .btn-primary:hover {
        background-color: #e64854;
        border-color: #e64854;
    }


.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 2rem;
}

.calendar-container, .analysis-container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .calendar-header h5 {
        margin: 0;
        font-weight: 600;
    }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

    .calendar-grid > div {
        padding: 0.5rem;
        font-weight: 500;
        color: #6c757d;
    }


.action-btn {
    background-color: #e64854;
    color: white;
    padding: 0.75rem;
    font-weight: 600;
}

    .action-btn:hover {
        background-color: #e64854;
        color: white;
    }


.day {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

    .day:hover {
        background-color: #e9ecef;
    }

    .day.selected {
        background-color: #e64854;
        color: white;
    }

    .day.disabled {
        color: #adb5bd;
        cursor: not-allowed;
    }

        .day.disabled:hover {
            background-color: transparent;
        }

    .day .sleep-hours {
        font-size: 0.7rem;
        font-weight: bold;
    }

.day-name {
    font-weight: bold;
    font-size: 0.8rem;
}

.export-btn {
    background-color: #e64854;
    color: white;
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
}

    .export-btn:hover {
        background-color: #5a359a;
        color: white;
    }

.analysis-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    /*margin-bottom: 1rem;*/
}

    .analysis-card h6 {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .analysis-card .value {
        font-size: 2rem;
        font-weight: 700;
    }

    .analysis-card .change {
        font-size: 0.9rem;
    }

.change.positive {
    color: #28a745;
}

.change.negative {
    color: #dc3545;
}

.chart-container {
    padding: 1.5rem;
    border-radius: 15px;
    background-color: #fff;
    border: 1px solid #e9ecef;
}


.modal-header {
    BACKGROUND: #e64854;
    COLOR: #FFF;
}

.btn {
    min-width: 100px !important;
    text-align: center;
}

@media (max-width: 992px) {
    .col {
        flex: 0 0 33.333367%;
        max-width: 33.333367%;
    }
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }

    .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


@media (max-width: 630px) {
    .col {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 15px;
    }

    .box {
        font-size: 1rem;
    }
}
