/* ============================================
   Meu Pet Diario - Design System v2.0
   Modern, professional UI
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --teal-900: #004D40;
    --teal-800: #00695C;
    --teal-700: #00796B;
    --teal-600: #00897B;
    --teal-500: #009688;
    --teal-400: #26A69A;
    --teal-300: #4DB6AC;
    --teal-200: #80CBC4;
    --teal-100: #B2DFDB;
    --teal-50: #E0F2F1;
    --purple-600: #7B1FA2;
    --purple-50: #F3E5F5;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

i.fas {
    margin: 0 4px;
}

.form-check {
    margin-right: 15px;
}


/* ==========================================
   NAVBAR DROPDOWN FIX (AdminLTE 3 + Bootstrap 5)
   ========================================== */
.main-header .navbar-nav .dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

.main-header .navbar-nav .dropdown-menu.show {
    display: block !important;
}

/* ==========================================
   GLOBAL OVERRIDES
   ========================================== */

.content-wrapper {
    background-color: var(--gray-100) !important;
}

.content-header {
    padding: 1.25rem 0.5rem 0.5rem;
}

.content-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}

.content {
    padding: 0 0.5rem 1.5rem;
}

.breadcrumb {
    font-size: 0.82rem;
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--teal-700);
}

.breadcrumb-item.active {
    color: var(--gray-500);
}


/* ==========================================
   CARDS
   ========================================== */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.card-header .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

.card-outline {
    border-top: 3px solid;
}


/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.15rem;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

/* Teal buttons */
.btn-teal,
.btn[style*="background:#00796B"] {
    background-color: var(--teal-700) !important;
    border-color: var(--teal-700) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 121, 107, 0.25);
}

.btn-teal:hover,
.btn[style*="background:#00796B"]:hover {
    background-color: var(--teal-800) !important;
    border-color: var(--teal-800) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0, 121, 107, 0.35);
    transform: translateY(-1px);
}

.btn-teal:active,
.btn[style*="background:#00796B"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 121, 107, 0.25);
}

.btn-outline-teal {
    color: var(--teal-700);
    border-color: var(--teal-700);
    background-color: transparent;
}

.btn-outline-teal:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 121, 107, 0.25);
}

.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-secondary {
    border-width: 1.5px;
}

.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
}

/* Button groups with spacing */
.btn-group-spaced {
    display: flex;
    gap: 0.5rem;
}

.btn-group-spaced .btn {
    border-radius: var(--radius-sm) !important;
}

.btn-group-vertical > .btn + .btn {
    margin-top: 0.5rem;
}

.btn-group-vertical > .btn {
    border-radius: var(--radius-sm) !important;
}


/* ==========================================
   FORMS
   ========================================== */

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.12);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
    font-size: 0.85rem;
}

textarea.form-control {
    min-height: 120px;
}

.form-check-input:checked {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
}

input[type="file"].form-control {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.input-group-text {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    background-color: var(--gray-50);
    color: var(--gray-600);
}


/* ==========================================
   TABLES
   ========================================== */

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--gray-50);
    color: var(--gray-600);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--gray-700);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-100);
}

.table-hover tbody tr:hover {
    background-color: var(--teal-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--gray-50);
}

.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}


/* ==========================================
   BADGES
   ========================================== */

.badge {
    padding: 0.35em 0.75em;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50rem;
    letter-spacing: 0.02em;
}

.badge-teal {
    background-color: var(--teal-700);
    color: #fff;
}

.badge-warning,
.right.badge.badge-warning {
    background-color: #FF9800 !important;
    color: #fff !important;
    font-size: 0.65rem;
    padding: 0.25em 0.6em;
}


/* ==========================================
   TABS
   ========================================== */

.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--teal-700);
    border-bottom-color: var(--teal-200);
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--teal-700);
    border-bottom-color: var(--teal-700);
    background-color: transparent;
    font-weight: 700;
}

.tab-content {
    padding-top: 1.25rem;
}


/* ==========================================
   ALERTS
   ========================================== */

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    border-left: 4px solid;
    position: relative;
}

.alert-success {
    background-color: #F1F8E9;
    border-color: #C8E6C9;
    border-left-color: #4CAF50;
    color: #2E7D32;
}

.alert-danger {
    background-color: #FFEBEE;
    border-color: #FFCDD2;
    border-left-color: #F44336;
    color: #C62828;
}

.alert-warning {
    background-color: #FFF3E0;
    border-color: #FFE0B2;
    border-left-color: #FF9800;
    color: #E65100;
}

.alert-info {
    background-color: var(--teal-50);
    border-color: var(--teal-100);
    border-left-color: var(--teal-700);
    color: var(--teal-900);
}

/* Fix btn-close for AdminLTE 3 (BS4) + BS5 compatibility */
.alert .btn-close,
.alert .close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0.5rem;
    width: auto;
    height: auto;
}

.alert .btn-close:hover,
.alert .close:hover {
    opacity: 0.8;
}

/* Ensure btn-close has the X icon via CSS if BS5 icon is missing */
.alert .btn-close {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/0.75em auto no-repeat;
    font-size: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.alert-dismissible {
    padding-right: 3.5rem;
}


/* ==========================================
   MODALS
   ========================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    gap: 0.5rem;
}


/* ==========================================
   AUTH PAGES (Login / Register)
   ========================================== */

.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    background-color: var(--gray-100);
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left branding panel */
.auth-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-700) 40%, var(--teal-500) 100%);
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.auth-branding::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 3rem;
    max-width: 420px;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: #fff;
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-brand-subtitle {
    font-size: 1.05rem;
    opacity: 0.8;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.auth-features {
    text-align: left;
    display: inline-block;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.92rem;
    opacity: 0.9;
}

.auth-feature-item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Right form panel */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

/* Mobile logo (hidden on desktop) */
.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--teal-700);
    font-size: 1.4rem;
    font-weight: 800;
}

.auth-mobile-logo i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Auth card */
.auth-card {
    margin-bottom: 1.5rem;
}

.auth-card-header {
    margin-bottom: 1.75rem;
}

.auth-card-body {
    /* no extra styling needed */
}

/* Title */
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.auth-title-sub {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 0.35rem;
}

/* Form fields */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.88rem;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.6rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-800);
    background-color: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.auth-input::placeholder {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.auth-input:focus {
    border-color: var(--teal-400);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.auth-input.is-invalid {
    border-color: #F44336;
    background-color: #fff;
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.auth-field-error {
    font-size: 0.78rem;
    color: #F44336;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Submit button */
.auth-submit-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 121, 107, 0.3);
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.4);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 121, 107, 0.3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Link */
.auth-link {
    color: var(--teal-700);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--teal-800);
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-branding {
        display: none;
    }

    .auth-form-side {
        background: linear-gradient(180deg, var(--teal-50) 0%, #fff 30%);
    }

    .auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 576px) {
    .auth-form-side {
        padding: 1.5rem 1.25rem;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-title {
        font-size: 1.3rem;
    }
}


/* ==========================================
   AVATAR CIRCLES
   ========================================== */

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 121, 107, 0.3);
}

.avatar-circle-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}


/* ==========================================
   PET CARDS
   ========================================== */

.pet-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: none;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.pet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pet-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.pet-card .card-body {
    padding: 1.5rem;
}

.pet-card .pet-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.3rem;
}

.pet-card .pet-breed {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.pet-card .pet-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.pet-card .pet-info i {
    color: var(--teal-400);
    margin-right: 0.25rem;
}

.pet-card .pet-avatar-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    font-size: 4rem;
    color: var(--teal-700);
}


/* ==========================================
   DASHBOARD STAT CARDS (small-box)
   ========================================== */

.small-box {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    margin-bottom: 1.25rem;
}

.small-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.small-box .inner {
    padding: 1.25rem 1.25rem 0.75rem;
}

.small-box .inner h3 {
    font-size: 2rem;
    font-weight: 800;
}

.small-box .inner p {
    font-size: 0.88rem;
    opacity: 0.9;
}

.small-box .icon {
    font-size: 4.5rem;
    top: 8px;
    right: 15px;
    opacity: 0.2;
}

.small-box-footer {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem;
    display: block;
    text-align: center;
}

.stat-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card.border-primary { border-left: 4px solid #007bff !important; }
.stat-card.border-success { border-left: 4px solid #28a745 !important; }
.stat-card.border-warning { border-left: 4px solid #ffc107 !important; }
.stat-card.border-danger  { border-left: 4px solid #dc3545 !important; }
.stat-card.border-info    { border-left: 4px solid #17a2b8 !important; }
.stat-card.border-teal    { border-left: 4px solid var(--teal-700) !important; }

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.2;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-800);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}


/* ==========================================
   EMOJI SELECTOR (Mood Picker)
   ========================================== */

.emoji-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.emoji-selector .emoji-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.emoji-selector .emoji-option:hover {
    border-color: var(--teal-300);
    background-color: var(--teal-50);
    transform: scale(1.1);
}

.emoji-selector .emoji-option.selected {
    border-color: var(--teal-700);
    background-color: var(--teal-50);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
    transform: scale(1.15);
}

.emoji-selector .emoji-option input[type="radio"] {
    display: none;
}

/* Emoji buttons in diario form */
.emoji-btn {
    transition: all var(--transition-normal) !important;
    border: 2px solid var(--gray-200) !important;
    background: #fff !important;
}

.emoji-btn:hover {
    border-color: var(--teal-300) !important;
    background: var(--teal-50) !important;
    transform: scale(1.05);
}

.emoji-btn.btn-primary {
    border-color: var(--teal-700) !important;
    background: var(--teal-50) !important;
    color: var(--gray-800) !important;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
    transform: scale(1.08);
}


/* ==========================================
   TIMELINE
   ========================================== */

.timeline-custom {
    position: relative;
    padding: 1.5rem 0;
}

.timeline-custom::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--teal-200), var(--gray-200));
    border-radius: 2px;
}

.timeline-custom .timeline-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 1.75rem;
}

.timeline-custom .timeline-item .timeline-dot {
    position: absolute;
    left: 15px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--teal-300);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--teal-300);
    z-index: 1;
}

.timeline-custom .timeline-item .timeline-dot.dot-success { background-color: #28a745; box-shadow: 0 0 0 2px #28a745; }
.timeline-custom .timeline-item .timeline-dot.dot-warning { background-color: #ffc107; box-shadow: 0 0 0 2px #ffc107; }
.timeline-custom .timeline-item .timeline-dot.dot-danger  { background-color: #dc3545; box-shadow: 0 0 0 2px #dc3545; }
.timeline-custom .timeline-item .timeline-dot.dot-info    { background-color: #17a2b8; box-shadow: 0 0 0 2px #17a2b8; }

.timeline-custom .timeline-item .timeline-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.timeline-custom .timeline-item .timeline-content {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition-fast);
}

.timeline-custom .timeline-item .timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-custom .timeline-item .timeline-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--gray-800);
}

.timeline-custom .timeline-item .timeline-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0;
}


/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--teal-700);
    color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 121, 107, 0.3);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active:hover {
    background-color: var(--teal-800);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
    border-radius: var(--radius-sm);
    margin: 2px 0.5rem;
    transition: background-color var(--transition-fast);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.85rem 0.5rem !important;
}

.user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}


/* ==========================================
   UTILITIES
   ========================================== */

.text-teal { color: var(--teal-700) !important; }
.bg-teal { background-color: var(--teal-700) !important; }
.bg-teal-light { background-color: var(--teal-50) !important; }
.border-teal { border-color: var(--teal-700) !important; }


/* ==========================================
   LIST GROUP
   ========================================== */

.list-group-item {
    border-color: var(--gray-100);
    padding: 1rem 1.25rem;
    transition: background-color var(--transition-fast);
}

.list-group-item:hover {
    background-color: var(--gray-50);
}

.list-group-flush .list-group-item:first-child {
    border-top: 0;
}


/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-state,
.text-center.py-5,
.text-center.py-4 {
    color: var(--gray-500);
}

.empty-state h4,
.text-center.py-5 h4 {
    color: var(--gray-600);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p,
.text-center.py-5 p,
.text-center.py-4 p {
    color: var(--gray-400);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    background-color: #fff;
}

.main-footer a {
    color: var(--teal-700);
}


/* ==========================================
   NAVBAR
   ========================================== */

.main-header.navbar {
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--gray-600);
    font-weight: 500;
}


/* ==========================================
   NOTIFICATION BELL
   ========================================== */

.notification-bell-link {
    position: relative;
    padding: 0.5rem 0.75rem !important;
}

.notification-bell-link i {
    font-size: 1.15rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.notification-bell-link:hover i {
    color: var(--teal-700);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background-color: #F44336;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50rem;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(244, 67, 54, 0.4);
    animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    width: 340px;
    max-height: 420px;
    padding: 0;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.notification-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-800);
}

.notification-mark-read {
    font-size: 0.75rem;
    color: var(--teal-700);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.notification-mark-read:hover {
    color: var(--teal-800);
    text-decoration: underline;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-400);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.notification-empty p {
    margin: 0;
    font-size: 0.85rem;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: var(--gray-700);
    transition: background-color var(--transition-fast);
}

.notification-item:hover {
    background-color: var(--teal-50);
    color: var(--gray-800);
    text-decoration: none;
}

.notification-item.unread {
    background-color: #F3F9F8;
    border-left: 3px solid var(--teal-700);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--teal-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    font-size: 0.85rem;
}

.notification-item.unread .notification-item-icon {
    background-color: var(--teal-100);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.notification-item-text {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--gray-400);
}

.notification-item-meta i {
    font-size: 0.65rem;
    color: var(--teal-400);
}

.notification-item-time {
    margin-left: auto;
}

/* Responsive notification dropdown */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 280px;
        max-height: 350px;
    }

    .notification-item {
        padding: 10px 12px;
    }

    .notification-item-title {
        font-size: 0.78rem;
    }
}


/* ==========================================
   PRICING CARDS
   ========================================== */

.pricing-card {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 2px solid var(--gray-200);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--teal-700);
}


/* ==========================================
   DIARY ENTRY CARDS
   ========================================== */

.diary-card {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.diary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


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

@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 1.15rem;
    }

    .nav-tabs .nav-link {
        padding: 0.65rem 0.75rem;
        font-size: 0.78rem;
    }

    .btn-group-vertical > .btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.65rem;
    }

    .d-flex.justify-content-between {
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .login-page .login-box {
        width: 95%;
        margin: 1rem auto;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .emoji-selector .emoji-option {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .pet-card .card-img-top,
    .pet-card .pet-avatar-placeholder {
        height: 150px;
    }

    .small-box .inner h3 {
        font-size: 1.6rem;
    }

    .table thead th {
        font-size: 0.72rem;
        padding: 0.65rem 0.75rem;
    }

    .table tbody td {
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }
}
