@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #c3e8dc;
}

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
}

.btnperfil {
    color: #86bca4;
    border: 2px solid #86bca4;
    border-radius: 50px;
    padding: 6px 20px;
    transition: all .3s ease;
    margin-left: 12px;
    text-decoration: none;
}

.btnperfil:hover {
    background: #86bca4;
    color: #fff;
    text-decoration: none;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    padding-top: 30px;
    background: #dff1e7;
    width: 260px;
    min-height: 100vh; 
    height: auto;  
    padding-left: 10px;
    padding-right: 0;
    border-top-right-radius: 40px;
}


.user-info {
    margin-bottom: 30px;
    color: #EDF7F3;
}

.sidebar img {
    padding-left: 10px;
}

.link-btn {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    padding: 0;
    font-family: Nunito;
    text-decoration: none;
}

.link-btn:hover {
    color: red;
    text-decoration: none;
}

nav a {
    display: block;
    margin: 12px 0;
    color: #000;
    text-decoration: none;
    font-family: Nunito;
}

nav a:hover {
    text-decoration: none;
    color: #000;
}

.apartado {
    color: #2c2c2c;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    width: 100%;
    cursor: pointer;
    transition: all .2s ease;
}

.apartado i {
    color: #2c2c2c;
    min-width: 20px;
    text-align: center;
}

.apartado:hover {
    
    background: white;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    box-shadow: 0 0 0 5px white;
}

.content {
    flex: 1;
    padding: 40px;
}

.citastit {
    font-family: Nunito;
    color: #3a3a3a;
    font-size: 25px;
    font-weight: bold;
}

hr {
    border: none;
    height: 2px;
    background: #e8e8e8;
}

.citas-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;

}

.badge-estado {
    margin-top: -4%;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* amarillo */
.pendiente {
    background: #fff3cd;
    color: #856404;
}

/* verde */
.atendida {
    background: #d4edda;
    color: #155724;
}

/* rojo */
.cancelada {
    background: #f8d7da;
    color: #721c24;
}
.cita-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 260px;
}

.cita-card p {
    font-family: Nunito;
    margin: 5px 0;
    font-size: 15px;
    color: #2c2c2c;
}
.cita-card i{
    color: #818181;
    margin-right: 8px;
}

.mascotas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card-mascota {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: .3s;
}

.card-mascota:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-mascota h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #4a4a4a;
}

.card-mascota p {
    font-size: 14px;
    margin: 3px 0;
    color: #666;
}




/* Número de control */
.numero-control {
    display: inline-block;
    margin: 6px 0 8px 0;
    padding: 4px 10px;
    font-size: 13px;
    font-family: Nunito;
    font-weight: bold;
    color: #5a8f7b;
    text-transform: uppercase;
    background: #e8f5ef;
    border-radius: 12px;
    letter-spacing: 0.5px;
}


.btn-cancelar {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #afc6bf;
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    text-decoration: none;
}

.btn-cancelar:hover {
    background: #96bbaf;
    color: #ffffff;
    text-decoration: none;
}

.btn-eliminar { 
   display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #a6a6a6;
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    text-decoration: none;
}

.btn-eliminar:hover {
    background: #757575;
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
         min-height: auto;
    }
    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        border-radius: 0;
        padding: 15px;
    }
    .user-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .apartado {
        padding: 10px 15px;
        border-radius: 20px;
    }
    .apartado:hover {
        border-radius: 20px;
        box-shadow: none;
    }
    .content {
        padding: 20px;
    }


}

@media (max-width: 480px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .apartado {
        width: 100%;
    }
    .citas-box {
        grid-template-columns: 1fr;
    }
    .card-mascota {
        width: 100%;
    }
   
}