:root {
    --primary: #00e5ff; /* Cyan padrao da clinica */
    --hover-bg: rgba(0, 229, 255, 0.1);
    --text-main: #6c757d;
    --text-active: #ffffff;
    --bg-body: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Header/Nav App */
.app-header {
    background: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Importante em mobile/host: flex com min-width:auto deixa img no tamanho intrínseco */
.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 72%;
}

.app-header .user-menu {
    flex-shrink: 0;
}

/* Só o logo no header (ex.: perfil) — não precisa reservar espaço à direita */
.app-header .app-logo:only-child {
    max-width: 100%;
    flex: 0 1 auto;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), #00b8d4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.app-logo-img {
    height: auto;
    max-height: 48px;
    width: auto;
    max-width: min(168px, 100%);
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .app-logo {
        font-size: 1rem;
        max-width: 68%;
    }

    .app-logo-img {
        max-height: 40px;
        max-width: min(140px, 100%);
    }
}

/* Login / cadastro – mesma contenção mesmo se style.css atrasa no CDN */
.auth-logo-img {
    display: block;
    margin: 0 auto 1.5rem;
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: min(220px, 85vw);
    object-fit: contain;
}

@media (max-width: 480px) {
    .auth-logo-img {
        max-height: 46px;
        max-width: min(180px, 80vw);
    }
}

/* Cards & Panels */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--hover-bg);
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-agendado { background: rgba(0, 229, 255, 0.1); color: var(--primary); }
.badge-concluido { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.badge-cancelado { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

/* Utils */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: #adb5bd; }
