*{
    box-sizing: border-box;
    font-family:'Times New Roman', Times, serif;
}

body{
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(130deg, #f9b3ca, #b5fffc);
    background-attachment: fixed;
}

.glass-card{
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid ;
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    text-align: center;
}

h2{
    margin-bottom: 10px;
}

p {
    color: dimgray;
    margin-bottom: 25px;
}

.input-group{
    text-align: left;
    margin-bottom: 15px;
}

label{
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: darkslategray;
}

input, textarea, select{
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    transition: 0.3s;
}
input:focus{
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: white;
}

.btn{
    display: inline-block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary-cares{
    background: white;
    color: lightpink;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.2);
}
.btn-primary-emergency{
    background: white;
    color: red;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.2);
}
.btn-primary-emergency:hover{
    transform: translateY(-2px);
    background: red;
    color: white;
}

.btn-primary-cares:hover{
    transform: translateY(-2px);
    background: lightpink;
    color: white;
}
.btn-primary-carep{
    background: white;
    color: lightblue;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.2);
}
.btn-primary-carep:hover{
    transform: translateY(-2px);
    background: lightblue;
    color: white;
}

.btn-secondary{
    background: rgba(255, 255, 255, 0.3);
    color: dimgray;
    border: 1px solid rgba(255, 255, 255, 0.4)
}

.btn-secondary:hover{
    background: rgba(255, 255, 255, 0.5);
}

.logo{
    width: 100px;
    height: 100px;
    border: 2px solid;
    border-radius: 50%;
    border-color: ghostwhite;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px !important;
}
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.nav-item{
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    color: dimgray;
    transition: 0.3s;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    text-align: left;
    outline: none;
}

.nav-item:hover{
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}
.nav-active{
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid lightpink;
    font-weight: 700;
}

.logout-box{
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-logout-cares{
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    display: block;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
}

.btn-logout-cares:hover{
    color: lightpink;
    background: rgba(255, 118, 117, 0.1);
}

.btn-logout-carep{
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    display: block;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
}
.btn-logout-carep:hover{
    color: lightblue;
    background: rgba(255, 118, 117, 0.1);
}

/* =====================
   BACK BUTTON
   ===================== */

.pw-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-wrapper input {
    flex: 1;
    padding-right: 44px !important;
}
.pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: gray;
    padding: 0;
    line-height: 1;
    margin: 0;
}
.pw-toggle:hover { color: dimgray; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: dimgray;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px 6px 10px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    transition: 0.2s;
    margin-bottom: 18px;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    color: black;
    transform: translateX(-3px);
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */

/* Bottom nav bar for sidebar pages on mobile */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Global */
    body {
        align-items: flex-start;
        padding: 15px !important;
        padding-bottom: 80px !important;
        flex-direction: column !important;
        gap: 15px !important;
        height: auto !important;
        overflow: auto !important;
    }

    .glass-card {
        padding: 25px 20px;
    }

    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }

    /* Show mobile bottom nav */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        z-index: 1000;
        padding: 10px 0 6px;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        color: dimgray;
        text-decoration: none;
        gap: 4px;
        padding: 4px 10px;
        border-radius: 10px;
        transition: 0.2s;
    }

    .mobile-nav a.nav-active-mobile {
        color: lightpink;
        font-weight: 700;
    }

    .mobile-nav a.nav-active-mobile-carep {
        color: lightblue;
        font-weight: 700;
    }

    .mobile-nav .nav-icon {
        font-size: 1.3rem;
    }

    /* Main content full width */
    .main-content {
        flex: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
    }

    /* Welcome page cards stack vertically */
    .lower-container {
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Grids → single column */
    .grid-cotainer {
        grid-template-columns: 1fr !important;
    }

    /* Daycare card in search */
    .daycare-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .daycare-img {
        width: 100% !important;
        height: 160px !important;
    }

    /* Owner messages inbox+chat stacked */
    .inbox-list {
        height: 200px !important;
        min-height: unset !important;
    }

    /* form rows → stack */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Edit form card full width */
    .edit-from-card {
        padding: 20px !important;
    }

    /* Emergency sidebar hidden, main content full width */
    .form-card {
        padding: 20px !important;
    }

    /* Chat input on mobile */
    .chat-input-area {
        flex-wrap: wrap;
    }

    .btn-send {
        width: 100% !important;
    }

    /* Search page sidebar (local) */
    .sidebar-local {
        display: none !important;
    }
}
