/* =============================================
   PET SHOP SAAS - Design Moderno Completo
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-bg: #f5f3ff;
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --dark: #111827;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== SITE HEADER ==================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
    -webkit-text-fill-color: initial;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ==================== DASHBOARD LAYOUT ==================== */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

/* Sidebar */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.sidebar-brand .logo {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.sidebar-brand p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.sidebar-user {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-user .user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.sidebar-user .user-type {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.sidebar-nav .nav-section {
    margin-bottom: 1.5rem;
}

.sidebar-nav .nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 0.15rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.sidebar-nav a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-nav a.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    margin-left: -1.5rem;
}

.sidebar-nav .nav-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.sidebar-footer a:hover {
    color: var(--danger);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--gray-50);
}

.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dashboard-content {
    padding: 2rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.card-header h2,
.card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.purple {
    background: var(--primary-bg);
    color: var(--primary);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.stat-icon.orange {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==================== PETS GRID ==================== */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.pet-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.pet-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pet-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-3);
    position: relative;
}

.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--gradient-1);
    color: white;
}

.pet-card-body {
    padding: 1.25rem;
}

.pet-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.pet-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.pet-info-item {
    display: flex;
    flex-direction: column;
}

.pet-info-label {
    color: var(--gray-500);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pet-info-value {
    color: var(--gray-700);
    font-weight: 500;
}

.pet-age {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
    color: var(--gray-900);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pendente,
.badge-pending {
    background: var(--warning-bg);
    color: #92400e;
}

.badge-confirmado,
.badge-confirmed {
    background: var(--success-bg);
    color: #065f46;
}

.badge-cancelado,
.badge-cancelled {
    background: var(--danger-bg);
    color: #991b1b;
}

.badge-concluido,
.badge-completed {
    background: var(--info-bg);
    color: #1e40af;
}

/* ==================== AGENDAMENTOS LIST ==================== */
.agendamentos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agendamento-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.agendamento-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.agendamento-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.agendamento-info .agendamento-data {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.agendamento-info .agendamento-servico {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
}

.agendamento-info .agendamento-pet {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.agendamento-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== SERVICOS LIST ==================== */
.servicos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.servico-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.servico-item:hover {
    box-shadow: var(--shadow-sm);
}

.servico-item.inactive {
    opacity: 0.6;
}

.servico-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.servico-info p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.servico-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.servico-meta .preco {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.servico-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--info-bg);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==================== HORARIOS ==================== */
.horarios-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.horario-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.horario-header {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horario-header h3 {
    font-size: 1rem;
    margin: 0;
}

.horario-body {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ==================== HORARIOS DISPONIVEIS ==================== */
.horarios-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.horario-option {
    position: relative;
}

.horario-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.horario-option label {
    display: block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.horario-option input[type="radio"]:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.horario-option label:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    animation: fadeInUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-form .btn {
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.auth-footer a {
    font-weight: 600;
}

/* ==================== HERO ==================== */
.hero {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero .btn {
    font-size: 1rem;
    padding: 0.8rem 2rem;
}

/* ==================== SECTION ==================== */
.section {
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    background: var(--primary-bg);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.service-duration {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-section a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-700);
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ==================== FILTROS ==================== */
.filtros-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.filtro-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== UPLOAD ==================== */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.upload-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-actions .btn {
    justify-content: flex-start;
}

/* ==================== MOBILE MENU ==================== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== RESPONSIVIDADE MOBILE ==================== */

/* Tablet e menores */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .dashboard-body {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 200;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    
    .dashboard-sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .mobile-toggle {
        display: block !important;
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 140;
        background: white;
        border: 1px solid var(--gray-300);
        border-radius: var(--radius);
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
        cursor: pointer;
        box-shadow: var(--shadow);
    }
    
    .dashboard-header {
        padding-left: 3.5rem !important;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .dashboard-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Celular */
@media (max-width: 768px) {
    /* Header do site */
    .nav-container {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        height: auto;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1rem;
        max-width: 60%;
    }
    
    .logo img {
        max-height: 30px !important;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.5rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 2px solid var(--gray-200);
        z-index: 100;
        order: 3;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
    }
    
    .nav-cta {
        gap: 0.35rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-cta .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--gray-700);
        padding: 0.25rem 0.5rem;
        order: 1;
    }
    
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-container .logo {
        order: 0;
        flex: 1;
        min-width: 120px;
    }
    
    .nav-container .mobile-toggle {
        order: 2;
    }
    
    .nav-container .nav-cta {
        order: 1;
    }
    
    .nav-container .nav-menu {
        order: 3;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
    
    /* Seções */
    .section {
        padding: 2.5rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Cards */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards,
    .social-cards {
        grid-template-columns: 1fr;
    }
    
    .pets-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tabelas */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem 0.75rem 3.5rem !important;
    }
    
    .dashboard-header h1 {
        font-size: 1.25rem;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Filtros */
    .card-body form {
        flex-direction: column !important;
    }
    
    .card-body form .form-group {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Abas */
    .tab-link,
    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Filtros de agendamentos */
    .agendamentos-filtro,
    .filtros-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Agendamento cards */
    .agendamento-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .agendamento-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Forms */
    .auth-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Modal */
    .modal-cupom {
        width: 100%;
        max-width: 95%;
        margin: 0.5rem;
    }
    
    /* Gráficos */
    .grafico-barras {
        height: 150px;
        gap: 0.5rem;
    }
    
    .barra {
        width: 12px;
    }
    
    .barra-label {
        font-size: 0.6rem;
        transform: rotate(-45deg);
        margin-top: 0.25rem;
    }
    
    /* Grid layouts */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Quick actions */
    .quick-actions .btn {
        width: 100%;
    }
    
    /* Horários */
    .horarios-options {
        gap: 0.35rem;
    }
    
    .horario-option label {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Celular muito pequeno */
@media (max-width: 480px) {
    .logo {
        font-size: 0.85rem;
    }
    
    .logo .logo-icon {
        font-size: 1.2rem;
    }
    
    .nav-cta .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .hero h1 {
        font-size: 1.35rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Form controls */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-gray { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}