/* =========================================
   FINDOUR.PET DASHBOARD SYSTEM
   PREMIUM RECOVERY CENTER UI
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, #13204d 0%, #050b1f 45%),
        #050b1f;
    color: #ffffff;
    min-height: 100vh;
}

/* =========================================
   GLOBAL LINKS
========================================= */

a {
    text-decoration: none;
}

/* =========================================
   APP LAYOUT
========================================= */

.app-shell {
    display: flex;
    min-height: 100vh;
}

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

.sidebar {
    width: 260px;
    background: rgba(8, 15, 40, 0.96);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 25px 20px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    z-index: 1000;
}

/* =========================================
   LOGO
========================================= */

.sidebar-logo {
    text-align: center;
    margin-bottom: 35px;
}

.sidebar-logo img {
    width: 120px;
    max-width: 100%;
}

.sidebar-logo h2 {
    margin-top: 10px;
    font-size: 22px;
    color: #ffffff;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    color: #cfd8ff;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover {
    background: rgba(0, 234, 255, 0.12);
    color: #00eaff;
    transform: translateX(3px);
}

.sidebar-nav a.active {
    background: linear-gradient(
        135deg,
        #00eaff,
        #1e90ff
    );
    color: #041021;
    font-weight: bold;
}

/* =========================================
   PREMIUM STATUS
========================================= */

.sidebar-status {
    margin-top: 30px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-status h3 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 10px;
}

.plan-free {
    color: #fbbf24;
    font-weight: bold;
}

.plan-premium {
    color: #00eaff;
    font-weight: bold;
}

/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

/* =========================================
   TOPBAR
========================================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar-title h1 {
    margin: 0;
    font-size: 34px;
    font-weight: bold;
}

.topbar-title p {
    margin-top: 6px;
    color: #9fb0d9;
    font-size: 15px;
}

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

.card {
    background: rgba(12, 20, 50, 0.82);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* =========================================
   STATS GRID
========================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(10, 18, 45, 0.92);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);

    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,234,255,0.35);

    box-shadow:
        0 15px 35px rgba(0,234,255,0.08);
}

.stat-card h3 {
    margin: 0;
    font-size: 15px;
    color: #9fb0d9;
}

.stat-number {
    font-size: 36px;
    margin-top: 12px;
    font-weight: bold;
    color: #ffffff;
}

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

.pet-card {
    display: flex;
    gap: 20px;
    align-items: center;

    background: rgba(10, 18, 45, 0.88);

    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;

    border: 1px solid rgba(255,255,255,0.05);

    transition: all 0.25s ease;
}

.pet-card:hover {
    transform: translateY(-3px);

    border-color: rgba(0,234,255,0.25);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.28);
}

/* =========================================
   PET IMAGE
========================================= */

.pet-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.08);
}

/* =========================================
   PET INFO
========================================= */

.pet-info {
    flex: 1;
}

.pet-info h3 {
    margin: 0;
    font-size: 24px;
}

.pet-info p {
    margin: 8px 0;
    color: #b6c2e1;
}

/* =========================================
   PET ACTIONS
========================================= */

.pet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge.safe {
    background: rgba(34,197,94,0.18);
    color: #4ade80;
}

.badge.lost {
    background: rgba(239,68,68,0.18);
    color: #f87171;
}

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

.btn {
    display: inline-block;

    background: linear-gradient(
        135deg,
        #1e90ff,
        #00b7ff
    );

    color: #fff;

    padding: 12px 16px;

    border-radius: 12px;

    text-align: center;

    font-size: 14px;
    font-weight: bold;

    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(30,144,255,0.30);
}

.btn.tracking {
    background: linear-gradient(
        135deg,
        #00eaff,
        #00b7ff
    );

    color: #041021;
}

.btn.locked {
    background: #334155;
}

.btn.public {
    background: linear-gradient(
        135deg,
        #92400e,
        #ea580c
    );
}

.btn.safe-btn {
    background: linear-gradient(
        135deg,
        #16a34a,
        #22c55e
    );
}

.btn.danger {
    background: linear-gradient(
        135deg,
        #dc2626,
        #ef4444
    );
}

/* =========================================
   LOGIN PAGE
========================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.login-layout {
    width: 100%;
    max-width: 1200px;

    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;

    align-items: center;
}

/* =========================================
   LOGIN HERO
========================================= */

.login-hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.login-hero p {
    font-size: 20px;
    color: #b8c7ea;
    line-height: 1.7;
    max-width: 600px;
}

.login-features {
    margin-top: 35px;
    display: grid;
    gap: 18px;
}

.login-feature {
    display: flex;
    gap: 14px;
    align-items: center;

    background: rgba(255,255,255,0.04);

    padding: 18px;
    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.05);
}

.login-feature-icon {
    font-size: 28px;
}

/* =========================================
   LOGIN CARD
========================================= */

.login-card {
    background: rgba(10,18,45,0.92);

    padding: 35px;

    border-radius: 24px;

    border: 1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.40);
}

.login-card h2 {
    margin-top: 0;
    font-size: 32px;
    margin-bottom: 10px;
}

.login-card p {
    color: #9fb0d9;
    margin-bottom: 25px;
}

/* =========================================
   INPUTS
========================================= */

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #cfd8ff;
    font-size: 14px;
}

.input-group input {
    width: 100%;

    padding: 14px 16px;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 12px;

    color: #fff;
    font-size: 15px;

    outline: none;

    transition: all 0.25s ease;
}

.input-group input:focus {
    border-color: #00eaff;

    box-shadow:
        0 0 0 3px rgba(0,234,255,0.10);
}

/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn {
    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    color: #fff;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(34,197,94,0.28);
}

/* =========================================
   HELPERS
========================================= */

.text-premium {
    color: #00eaff;
    font-weight: bold;
}

.text-warning {
    color: #fbbf24;
    font-weight: bold;
}

.text-danger {
    color: #f87171;
}

.muted {
    color: #9fb0d9;
}

.small {
    font-size: 13px;
}

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

@media (max-width: 980px) {

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-hero {
        text-align: center;
    }

    .login-hero h1 {
        font-size: 42px;
    }

    .pet-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pet-actions {
        width: 100%;
    }

}