/* ============================================
   Sistema de Agendamento para Cabelereiro
   CSS Principal - Design Moderno e Responsivo
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #EC4899;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #6366F1;
    
    --bg-primary: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --bg-card: #1E1E36;
    --bg-card-hover: #252542;
    --bg-input: #16162A;
    
    --text-primary: #F1F1F6;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;
    
    --border-color: #2D2D4A;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --navbar-height: 64px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.text-muted {
    color: var(--text-muted);
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    font-family: var(--font-display);
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.4rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.navbar-toggle:hover {
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary) !important;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link i {
    font-size: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    margin-left: 0.5rem;
}

.nav-user-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-user-name i {
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-logout {
    color: var(--danger) !important;
}

.nav-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* === Main Content === */
.main-content {
    padding-top: var(--navbar-height);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content-full {
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* === Page Header === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.03);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 1.5rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #DB2777);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

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

.btn-block {
    width: 100%;
}

/* === Forms === */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-row .col-half {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .col-half {
        flex: 1;
        max-width: 100%;
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-label i {
    color: var(--primary);
}

.form-help {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* === Alerts === */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert i {
    font-size: 1.1rem;
}

/* === Auth Pages === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* === Section === */
.section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.section-title i {
    color: var(--primary);
}

/* === Agendamentos List === */
.agendamentos-list {
    display: grid;
    gap: 0.75rem;
}

.agendamento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.agendamento-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.agendamento-card.status-cancelado {
    opacity: 0.6;
}

.agendamento-status {
    flex-shrink: 0;
}

.agendamento-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.agendamento-info > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.agendamento-info > div i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.agendamento-servico {
    font-weight: 500;
    color: var(--text-primary) !important;
}

.agendamento-actions {
    flex-shrink: 0;
}

/* === Status Badges === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-agendado {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-confirmado {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-cancelado {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-concluido {
    background: rgba(99, 102, 241, 0.1);
    color: var(--info);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

.modal-lg {
    max-width: 600px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* === Modal Detalhes === */
.modal-detalhes {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detalhes-header {
    display: flex;
    justify-content: center;
}

.detalhes-grid {
    display: grid;
    gap: 1.25rem;
}

.detalhes-section {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
}

.detalhes-section h4 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.detalhes-section h4 i {
    color: var(--primary);
}

.detalhes-section p {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.detalhes-section p i {
    color: var(--text-muted);
    width: 16px;
}

.detalhes-servico {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--text-primary);
}

.detalhes-preco {
    color: var(--success) !important;
    font-weight: 600;
}

.detalhes-cliente-nome {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--text-primary);
}

.detalhes-telefone {
    cursor: pointer;
    transition: var(--transition);
}

.detalhes-telefone:hover {
    color: var(--primary);
}

.telefone-link {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.detalhes-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* === Telefone Ações === */
.telefone-acoes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.telefone-numero {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
}

/* === Legend === */
.legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* === Serviços Grid (Cliente) === */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.servico-card {
    cursor: pointer;
    transition: var(--transition);
}

.servico-card input[type="radio"] {
    display: none;
}

.servico-card-content {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.servico-card:hover .servico-card-content {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.servico-card.selected .servico-card-content {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.servico-card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.servico-card-content h4 {
    margin-bottom: 0.5rem;
}

.servico-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.servico-card-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.servico-preco {
    color: var(--success);
    font-weight: 600;
}

.servico-duracao {
    color: var(--text-muted);
}

.servico-duracao i {
    margin-right: 0.25rem;
}

/* === Horários Grid === */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.horario-item {
    cursor: pointer;
    transition: var(--transition);
}

.horario-item input[type="radio"] {
    display: none;
}

.horario-time {
    display: block;
    text-align: center;
    padding: 0.625rem 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.horario-item:hover .horario-time {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.horario-item.selected .horario-time {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.loading-horarios,
.no-horarios {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading-horarios i {
    margin-right: 0.5rem;
}

/* === Step Form === */
.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1.1rem;
}

/* === Serviços Admin Grid === */
.servicos-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.servico-admin-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.servico-admin-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.servico-admin-card.inativo {
    opacity: 0.6;
}

.servico-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.servico-admin-header h3 {
    font-size: 1rem;
}

.servico-admin-preco {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.servico-admin-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.servico-admin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.servico-admin-meta i {
    margin-right: 0.25rem;
}

.servico-admin-actions {
    display: flex;
    gap: 0.5rem;
}

/* === Config Grid === */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* === Logo Preview === */
.logo-preview {
    margin-bottom: 0.75rem;
}

.logo-img {
    max-width: 150px;
    max-height: 150px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
}

/* === Table === */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(139, 92, 246, 0.03);
}

.cliente-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cliente-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.link-email,
.link-telefone {
    color: var(--text-secondary) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.link-email:hover,
.link-telefone:hover {
    color: var(--primary) !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--info);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-made-with {
    margin-top: 0.25rem;
}

.footer-made-with i {
    color: var(--secondary);
}

/* === FullCalendar Customization === */
#calendar {
    min-height: 500px;
}

.fc {
    background: transparent !important;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

.fc .fc-button-primary {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-family) !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--border-radius-sm) !important;
    transition: var(--transition) !important;
}

.fc .fc-button-primary:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.fc .fc-button-primary.fc-button-active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.fc .fc-daygrid-day {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(139, 92, 246, 0.05) !important;
}

.fc .fc-daygrid-day-number {
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
}

.fc .fc-col-header-cell {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.fc .fc-col-header-cell-cushion {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
}

.fc .fc-timegrid-slot {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.fc .fc-timegrid-axis {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.fc .fc-timegrid-axis-cushion {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: var(--secondary) !important;
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--secondary) !important;
    background: var(--secondary) !important;
}

.fc .fc-event {
    border: none !important;
    border-radius: 6px !important;
    padding: 2px 4px !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

.fc .fc-event:hover {
    opacity: 0.9 !important;
    transform: scale(1.02) !important;
}

.fc .fc-event-title {
    font-weight: 500 !important;
    white-space: normal !important;
}

.fc .fc-timegrid-event {
    min-height: 30px !important;
}

.fc .fc-more-popover {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-lg) !important;
}

.fc .fc-more-popover .fc-popover-header {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 0.75rem !important;
}

.fc .fc-more-popover .fc-popover-body {
    padding: 0.5rem !important;
}

.fc .fc-non-business {
    background: rgba(0, 0, 0, 0.2) !important;
}

.fc .fc-scrollgrid {
    border-color: var(--border-color) !important;
}

.fc .fc-scrollgrid-section > td {
    border-color: var(--border-color) !important;
}

/* === Loading === */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading i {
    margin-right: 0.5rem;
}

/* === HR === */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .nav-user {
        border-left: none;
        border-top: 1px solid var(--border-color);
        margin-left: 0;
        padding-left: 0;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-user-name {
        padding: 0.5rem 1rem;
    }
    
    .page-header {
        flex-direction: column;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .page-header-actions .btn {
        flex: 1;
    }
    
    .agendamento-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .agendamento-info {
        grid-template-columns: 1fr;
    }
    
    .agendamento-actions {
        text-align: center;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .servicos-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .detalhes-actions {
        flex-direction: column;
    }
    
    .detalhes-actions .btn {
        width: 100%;
    }
    
    .legend {
        gap: 0.5rem;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    #calendar {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .horarios-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
    }
    
    .auth-card {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.35rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Selection === */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}