/* ============================================
   STUDIO METROPOLIS
   Estilos Principais
   ============================================ */

:root {
    /* Paleta Elegante para Salão de Beleza - Tema Claro */
    --primary-color: #d63384; /* Rosa elegante */
    --primary-light: #2563eb; /* Azul escuro */
    --primary-dark: #c2185b;
    --secondary-color: #d4af37; /* Dourado elegante */
    --secondary-light: #f4d03f;
    --success-color: #10b981;
    --success-light: #34d399;
    --danger-color: #e74c3c;
    --danger-light: #f87171;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --info-color: #9b59b6; /* Roxo suave */
    --info-light: #bb8fce;
    --purple-color: #a855f7;
    --pink-color: #2563eb; /* Azul escuro */
    --rose-color: #fce4ec; /* Rosa muito claro */
    --gold-color: #d4af37; /* Dourado */
    --beige-color: #f5f1e8; /* Bege elegante */
    --cyan-color: #06b6d4;
    --orange-color: #f97316;
    --dark-color: #2c2c2c;
    --light-color: #fefefe;
    --border-color: #f0e6e6;
    --text-color: #3a3a3a;
    --text-light: #7a7a7a;
    --shadow: 0 2px 12px rgba(214, 51, 132, 0.15);
    --shadow-lg: 0 10px 30px rgba(214, 51, 132, 0.2);
    
    /* Backgrounds e containers - Tema Claro */
    --bg-primary: #ffffff;
    --bg-card: linear-gradient(135deg, #ffffff 0%, #fef7f0 100%);
    --bg-sidebar: #e5e5e5; /* Cinza médio */
    --bg-topbar: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   TOPBAR (Barra Superior)
   ============================================ */

.topbar {
    background: var(--bg-topbar);
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    transition: background 0.3s ease;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    margin-right: 1rem;
    display: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.topbar-brand a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.topbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notifications {
    position: relative;
}

.notification-icon {
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    position: relative;
}

.notification-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.user-menu {
    position: relative;
    cursor: pointer;
    color: white;
    user-select: none;
}

.user-menu > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.user-menu #userMenuArrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.user-menu.active #userMenuArrow {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef7f0 100%);
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3), 0 4px 12px rgba(212, 175, 55, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 2px solid rgba(214, 51, 132, 0.2);
    overflow: hidden;
    z-index: 1001;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d63384, #2563eb, #d4af37);
}

.user-menu.active .user-dropdown {
    display: block;
}

.user-dropdown a {
    color: var(--text-color);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.user-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.2), rgba(212, 175, 55, 0.15));
    transition: width 0.3s ease;
}

.user-dropdown a:hover {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.12), rgba(212, 175, 55, 0.08));
    color: #d63384;
    padding-left: 1.5rem;
}

.user-dropdown a:hover::before {
    width: 4px;
}


/* ============================================
   SIDEBAR (Barra Lateral Vertical)
   ============================================ */

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 260px;
    height: calc(100vh - 60px);
    background: var(--bg-sidebar);
    box-shadow: 4px 0 20px rgba(214, 51, 132, 0.12);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    transition: background 0.3s ease, border-color 0.3s ease;
}
    transition: transform 0.3s ease;
    border-right: 2px solid;
    border-image: linear-gradient(180deg, #d63384, #2563eb) 1;
    box-sizing: border-box;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu > li {
    margin: 0;
}

.sidebar-menu > li > a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    margin: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.sidebar-menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu > li > a:hover {
    background: rgba(214, 51, 132, 0.1);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-menu > li > a:hover::before {
    transform: scaleY(1);
}

.sidebar-menu > li > a.active {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.15), rgba(212, 175, 55, 0.1));
    border-left-color: #d63384;
    color: #d63384;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.15);
}

.sidebar-menu > li > a.active::before {
    transform: scaleY(1);
}

.sidebar-menu > li > a i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-menu > li > a:hover i {
    transform: scale(1.2);
}

.sidebar-menu > li > a.active i {
    transform: scale(1.1);
}

/* Cores específicas para cada ícone do menu */
.sidebar-menu > li > a i.fa-home,
.sidebar-menu > li > a i.fa-tachometer-alt {
    color: #d63384;
}

.sidebar-menu > li > a i.fa-users,
.sidebar-menu > li > a i.fa-user-friends {
    color: #10b981;
}

.sidebar-menu > li > a i.fa-briefcase,
.sidebar-menu > li > a i.fa-user-tie {
    color: #3b82f6;
}

.sidebar-menu > li > a i.fa-spa {
    color: #f59e0b;
}

.sidebar-menu > li > a i.fa-box,
.sidebar-menu > li > a i.fa-warehouse {
    color: #8b5cf6;
}

.sidebar-menu > li > a i.fa-dollar-sign,
.sidebar-menu > li > a i.fa-money-bill-wave,
.sidebar-menu > li > a i.fa-wallet {
    color: #10b981;
}

.sidebar-menu > li > a i.fa-calendar,
.sidebar-menu > li > a i.fa-calendar-alt,
.sidebar-menu > li > a i.fa-calendar-check {
    color: #ef4444;
}

.sidebar-menu > li > a i.fa-chart-bar,
.sidebar-menu > li > a i.fa-chart-line,
.sidebar-menu > li > a i.fa-chart-pie {
    color: #f97316;
}

.sidebar-menu > li > a i.fa-cog,
.sidebar-menu > li > a i.fa-user-shield,
.sidebar-menu > li > a i.fa-shield-alt {
    color: #6366f1;
}

.sidebar-menu > li > a i.fa-file-invoice-dollar,
.sidebar-menu > li > a i.fa-receipt {
    color: #d63384;
}

.sidebar-menu > li > a i.fa-truck,
.sidebar-menu > li > a i.fa-shipping-fast {
    color: #14b8a6;
}

.sidebar-menu > li > a i.fa-star {
    color: #fbbf24;
}

.sidebar-menu > li > a i.fa-chevron-down {
    color: #9ca3af;
    margin-left: auto;
}

/* Hover states com cores mais vibrantes */
.sidebar-menu > li > a:hover i.fa-home,
.sidebar-menu > li > a:hover i.fa-tachometer-alt {
    color: #5568d3;
}

.sidebar-menu > li > a:hover i.fa-users,
.sidebar-menu > li > a:hover i.fa-user-friends {
    color: #059669;
}

.sidebar-menu > li > a:hover i.fa-briefcase,
.sidebar-menu > li > a:hover i.fa-user-tie {
    color: #2563eb;
}

.sidebar-menu > li > a:hover i.fa-spa {
    color: #d97706;
}

.sidebar-menu > li > a:hover i.fa-box,
.sidebar-menu > li > a:hover i.fa-warehouse {
    color: #7c3aed;
}

.sidebar-menu > li > a:hover i.fa-dollar-sign,
.sidebar-menu > li > a:hover i.fa-money-bill-wave,
.sidebar-menu > li > a:hover i.fa-wallet {
    color: #059669;
}

.sidebar-menu > li > a:hover i.fa-calendar,
.sidebar-menu > li > a:hover i.fa-calendar-alt,
.sidebar-menu > li > a:hover i.fa-calendar-check {
    color: #dc2626;
}

.sidebar-menu > li > a:hover i.fa-chart-bar,
.sidebar-menu > li > a:hover i.fa-chart-line,
.sidebar-menu > li > a:hover i.fa-chart-pie {
    color: #ea580c;
}

.sidebar-menu > li > a:hover i.fa-cog,
.sidebar-menu > li > a:hover i.fa-user-shield,
.sidebar-menu > li > a:hover i.fa-shield-alt {
    color: #4f46e5;
}

.sidebar-menu > li > a:hover i.fa-file-invoice-dollar,
.sidebar-menu > li > a:hover i.fa-receipt {
    color: #db2777;
}

.sidebar-menu > li > a:hover i.fa-truck,
.sidebar-menu > li > a:hover i.fa-shipping-fast {
    color: #0d9488;
}

/* Active states */
.sidebar-menu > li > a.active i.fa-home,
.sidebar-menu > li > a.active i.fa-tachometer-alt {
    color: #5568d3;
}

.sidebar-menu > li > a.active i.fa-users,
.sidebar-menu > li > a.active i.fa-user-friends {
    color: #059669;
}

.sidebar-menu > li > a.active i.fa-briefcase,
.sidebar-menu > li > a.active i.fa-user-tie {
    color: #2563eb;
}

.sidebar-menu > li > a.active i.fa-spa {
    color: #d97706;
}

.sidebar-menu > li > a.active i.fa-box,
.sidebar-menu > li > a.active i.fa-warehouse {
    color: #7c3aed;
}

.sidebar-menu > li > a.active i.fa-dollar-sign,
.sidebar-menu > li > a.active i.fa-money-bill-wave,
.sidebar-menu > li > a.active i.fa-wallet {
    color: #059669;
}

.sidebar-menu > li > a.active i.fa-calendar,
.sidebar-menu > li > a.active i.fa-calendar-alt,
.sidebar-menu > li > a.active i.fa-calendar-check {
    color: #dc2626;
}

.sidebar-menu > li > a.active i.fa-chart-bar,
.sidebar-menu > li > a.active i.fa-chart-line,
.sidebar-menu > li > a.active i.fa-chart-pie {
    color: #ea580c;
}

.sidebar-menu > li > a.active i.fa-cog,
.sidebar-menu > li > a.active i.fa-user-shield,
.sidebar-menu > li > a.active i.fa-shield-alt {
    color: #4f46e5;
}

.sidebar-menu > li > a.active i.fa-file-invoice-dollar,
.sidebar-menu > li > a.active i.fa-receipt {
    color: #db2777;
}

.sidebar-menu > li > a.active i.fa-truck,
.sidebar-menu > li > a.active i.fa-shipping-fast {
    color: #0d9488;
}

.sidebar-menu > li > a.active i.fa-star {
    color: #f59e0b;
}

.sidebar-menu > li > a:hover i.fa-star {
    color: #f59e0b;
}

.sidebar-menu > li > a span {
    flex: 1;
}

/* Menu Items com Submenu */
.menu-item .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item .menu-toggle i:last-child {
    margin-left: auto;
    margin-right: 0;
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(214, 51, 132, 0.6);
}

.menu-item.active .menu-toggle i:last-child {
    transform: rotate(180deg);
    color: #d63384;
}

.menu-item.active .menu-toggle {
    color: #d63384;
    font-weight: 600;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--light-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    margin: 0 0.5rem;
    display: block;
}

.menu-item.active .submenu {
    max-height: 500px !important;
    opacity: 1 !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.25rem !important;
    display: block !important;
    visibility: visible !important;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem 0.875rem 3.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    margin: 0.125rem 0.5rem;
    border-radius: 0.5rem;
}

.submenu li a i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
    color: #d63384;
    transition: all 0.3s ease;
}

/* Cores para ícones do submenu */
.submenu li a i.fa-list,
.submenu li a i.fa-th-list {
    color: #d63384;
}

.submenu li a i.fa-plus,
.submenu li a i.fa-plus-circle {
    color: #10b981;
}

.submenu li a i.fa-edit,
.submenu li a i.fa-pen {
    color: #3b82f6;
}

.submenu li a i.fa-file-alt,
.submenu li a i.fa-file {
    color: #f59e0b;
}

.submenu li a i.fa-chart-line,
.submenu li a i.fa-chart-bar {
    color: #f97316;
}

.submenu li a i.fa-money-bill-wave,
.submenu li a i.fa-dollar-sign {
    color: #10b981;
}

.submenu li a i.fa-calendar,
.submenu li a i.fa-calendar-alt {
    color: #ef4444;
}

.submenu li a i.fa-box,
.submenu li a i.fa-warehouse {
    color: #8b5cf6;
}

.submenu li a i.fa-truck,
.submenu li a i.fa-shipping-fast {
    color: #14b8a6;
}

.submenu li a i.fa-user-plus,
.submenu li a i.fa-user {
    color: #3b82f6;
}

.submenu li a i.fa-broom,
.submenu li a i.fa-trash-alt,
.submenu li a i.fa-trash {
    color: #ef4444;
}

.submenu li a:hover i {
    transform: scale(1.15);
}

.submenu li a::before {
    content: '→';
    position: absolute;
    left: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.submenu li a:hover {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.18), rgba(212, 175, 55, 0.12));
    color: #d63384;
    transform: translateX(5px);
    padding-left: 4rem;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
}

.submenu li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.submenu li a:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

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

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #d63384 0%, #2563eb 50%, #d4af37 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-header h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.9);
    color: #000000 !important;
}
.login-form input[type="email"],
.login-form input[type="password"] {
    color: #000000 !important;
}
.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.login-form input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.3);
    background: #ffffff;
    color: #000000 !important;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-footer p {
    margin: 0.25rem 0;
}

/* Estilos de alerta dentro do login-box */
.login-box .alert {
    background: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-left: 4px solid #ef4444;
    backdrop-filter: blur(10px);
}

.login-box .alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #51cf66;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-left: 4px solid #10b981;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.main-content {
    margin-left: 260px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 2rem;
    transition: margin-left 0.3s ease;
    width: calc(100% - 260px);
    box-sizing: border-box;
}

.page-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #d63384, #2563eb, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

.btn,
button,
a.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 9999 !important;
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #d63384, #2563eb, #d4af37);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.5);
    filter: brightness(1.1);
    background: linear-gradient(135deg, #2563eb, #f06292, #f4d03f);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669, #14b8a6);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    filter: brightness(1.05);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    filter: brightness(1.05);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706, #f97316);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563, #374151);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
    filter: brightness(1.05);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group label:has(input[type="checkbox"]),
.form-group label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}

.form-group label input[type="checkbox"],
.form-group label input[type="radio"] {
    margin: 0;
    width: auto;
    flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.form-control {
    display: block;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: #d63384;
    box-shadow: 0 0 0 4px rgba(214, 51, 132, 0.2), 0 4px 12px rgba(214, 51, 132, 0.15);
    transform: translateY(-2px);
    background: white;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   CARDS & STATS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.4s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.5s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: 0.6s; }
.stats-grid .stat-card:nth-child(7) { animation-delay: 0.7s; }
.stats-grid .stat-card:nth-child(8) { animation-delay: 0.8s; }
.stats-grid .stat-card:nth-child(9) { animation-delay: 0.9s; }
.stats-grid .stat-card:nth-child(10) { animation-delay: 1s; }

.stat-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d63384, #2563eb, #d4af37);
}

.stat-card:hover,
a.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.3), 0 4px 15px rgba(212, 175, 55, 0.2);
    border-color: rgba(214, 51, 132, 0.3);
}

.stat-icon {
    font-size: 1.5rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.2), rgba(212, 175, 55, 0.15));
    border-radius: 0.75rem;
    color: #d63384;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.2);
    border: 2px solid rgba(214, 51, 132, 0.2);
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
    animation: bounce 0.6s ease;
    box-shadow: 0 8px 12px -2px rgba(214, 51, 132, 0.3);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.stat-card-success::before {
    background: linear-gradient(90deg, #10b981, #059669, #14b8a6);
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.25), rgba(212, 175, 55, 0.2));
    color: #d63384;
    border-color: rgba(214, 51, 132, 0.3);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.25);
}

.stat-card-primary::before {
    background: linear-gradient(90deg, #d63384, #2563eb, #d4af37);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #f97316);
}

.stat-card-danger .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.stat-card-danger::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #ec4899);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25), rgba(214, 51, 132, 0.2));
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.25);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #9b59b6, #d63384, #2563eb);
}

a.stat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.stat-card:hover {
    text-decoration: none;
    color: inherit;
}

.stat-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #d63384, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
}

.stat-card:hover .stat-info h3 {
    transform: scale(1.05);
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.stat-info small {
    font-size: 0.7rem;
    display: block;
    margin-top: 0.25rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-grid .dashboard-card:nth-child(1) { animation-delay: 0.2s; }
.dashboard-grid .dashboard-card:nth-child(2) { animation-delay: 0.4s; }
.dashboard-grid .dashboard-card:nth-child(3) { animation-delay: 0.6s; }

.dashboard-grid-single {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.dashboard-grid-single .dashboard-card {
    width: 100%;
    max-width: 100%;
    flex: 1;
}

.dashboard-grid-single .dashboard-card:nth-child(1) { animation-delay: 0.2s; }
.dashboard-grid-single .dashboard-card:nth-child(2) { animation-delay: 0.4s; }
.dashboard-grid-single .dashboard-card:nth-child(3) { animation-delay: 0.6s; }
.dashboard-grid-single .dashboard-card:nth-child(4) { animation-delay: 0.8s; }
.dashboard-grid-single .dashboard-card:nth-child(5) { animation-delay: 1s; }

/* Barra Separadora */
.dashboard-separator {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    width: 100%;
}

.separator-line {
    flex: 1;
    height: 2px;
    border: none;
    background: linear-gradient(90deg, transparent, #d63384, #2563eb, #d4af37, transparent);
    margin: 0;
}

.separator-text {
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d63384;
    background: linear-gradient(135deg, #d63384, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d63384, #2563eb, #d4af37);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.25), 0 4px 15px rgba(212, 175, 55, 0.15);
}

.dashboard-card h2 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #d63384, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #d63384, #2563eb) 1;
}

.dashboard-card h2 a {
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.dashboard-card h2 a:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.dashboard-card h2 a span {
    background: linear-gradient(135deg, #d63384, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-card h2 i {
    background: linear-gradient(135deg, #d63384, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

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

.table-responsive {
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    box-sizing: border-box;
    min-width: 600px;
}

.table thead {
    background: linear-gradient(135deg, #d63384, #2563eb, #d4af37);
    color: white;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
}

.table th,
.table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table th {
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.4s ease-out;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.1), rgba(212, 175, 55, 0.08));
    transform: translateX(3px);
    border-left: 3px solid #d63384;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Tabelas dentro de dashboard-cards (sem thead) - Informações Pessoais e Estatísticas */
.dashboard-card .table {
    background: transparent;
    border: none;
}

.dashboard-card .table th {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.15), rgba(212, 175, 55, 0.1));
    color: #1f2937 !important;
    font-weight: 700;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: normal;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(214, 51, 132, 0.2);
    width: 40%;
    vertical-align: top;
}

.dashboard-card .table td {
    color: #374151 !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.dashboard-card .table tr:last-child th,
.dashboard-card .table tr:last-child td {
    border-bottom: none;
}

.dashboard-card .table tr:hover {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.08), rgba(212, 175, 55, 0.05));
    transform: none;
    border-left: none;
}

.dashboard-card .table tr:hover th {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.2), rgba(212, 175, 55, 0.15));
    color: #1f2937 !important;
}

.dashboard-card .table tr:hover td {
    color: #374151 !important;
}

.dashboard-card .table td strong {
    color: #6366f1 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Tabelas de Aniversariantes - Ajuste de colunas */
.table-aniversariantes {
    width: 100%;
    table-layout: auto;
}

.table-aniversariantes th,
.table-aniversariantes td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.9rem;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Coluna Nome - sempre primeira */
.table-aniversariantes th:nth-child(1),
.table-aniversariantes td:nth-child(1) {
    min-width: 150px;
    max-width: 200px;
    white-space: normal;
}

/* Coluna Data/Função - segunda coluna */
.table-aniversariantes th:nth-child(2),
.table-aniversariantes td:nth-child(2) {
    min-width: 100px;
    text-align: center;
    white-space: normal;
}

/* Coluna Quando - terceira coluna */
.table-aniversariantes th:nth-child(3),
.table-aniversariantes td:nth-child(3) {
    min-width: 120px;
    text-align: center;
    white-space: normal;
}

/* Coluna Telefone - quarta coluna */
.table-aniversariantes th:nth-child(4),
.table-aniversariantes td:nth-child(4) {
    min-width: 130px;
    text-align: center;
    white-space: normal;
}

/* Coluna Ações - quinta coluna */
.table-aniversariantes th:nth-child(5),
.table-aniversariantes td:nth-child(5) {
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

/* Coluna Ações - sexta coluna (para funcionários) */
.table-aniversariantes th:nth-child(6),
.table-aniversariantes td:nth-child(6) {
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .table-aniversariantes {
        font-size: 0.85rem;
    }
    
    .table-aniversariantes th,
    .table-aniversariantes td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8rem;
    }
    
    .table-aniversariantes th:nth-child(1),
    .table-aniversariantes td:nth-child(1) {
        min-width: 120px;
        max-width: 150px;
    }
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.2), rgba(212, 175, 55, 0.15));
    color: #d63384;
    border: 2px solid rgba(214, 51, 132, 0.3);
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
}

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

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #ef4444, #dc2626) 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #10b981;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #10b981, #059669) 1;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    color: #3b82f6;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #3b82f6, #2563eb) 1;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    color: #f59e0b;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #f59e0b, #d97706) 1;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

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

.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        margin-left: 0;
    }
}

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

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .dashboard-separator {
        margin: 1.5rem 0;
    }
    
    .separator-text {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .topbar-brand span {
        display: none;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
}

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

.card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d63384, #2563eb, #d4af37);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.25), 0 4px 15px rgba(212, 175, 55, 0.2);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-form .form-control {
    flex: 1;
    min-width: 200px;
}

.table-warning {
    background-color: rgba(245, 158, 11, 0.1);
}

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

.table-info {
    background-color: rgba(59, 130, 246, 0.1);
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* ============================================
   AUTOCOMPLETE DE FUNÇÕES
   ============================================ */

#funcao-suggestions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

#funcao-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

#funcao-suggestions .suggestion-item:hover,
#funcao-suggestions .suggestion-item:focus {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.1), rgba(212, 175, 55, 0.08));
    color: var(--primary-color);
    transform: translateX(3px);
}

#funcao-suggestions strong {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.05), rgba(212, 175, 55, 0.03));
    border-bottom: 1px solid rgba(214, 51, 132, 0.1);
    margin-top: 0.5rem;
}

#funcao-suggestions strong:first-child {
    margin-top: 0;
}

/* Scrollbar personalizada */
#funcao-suggestions::-webkit-scrollbar {
    width: 6px;
}

#funcao-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#funcao-suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d63384, #2563eb);
    border-radius: 3px;
}

#funcao-suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #d63384);
}

/* ============================================
   AUTOCOMPLETE DE CATEGORIAS DE SERVIÇOS
   ============================================ */

#categoria-suggestions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

#categoria-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

#categoria-suggestions .suggestion-item:hover,
#categoria-suggestions .suggestion-item:focus {
    background: linear-gradient(90deg, rgba(214, 51, 132, 0.1), rgba(212, 175, 55, 0.08));
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Scrollbar personalizada para categorias */
#categoria-suggestions::-webkit-scrollbar {
    width: 6px;
}

#categoria-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#categoria-suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d63384, #2563eb);
    border-radius: 3px;
}

#categoria-suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #d63384);
}

/* ============================================
   ESTILOS PARA IMPRESSÃO DE RELATÓRIOS
   ============================================ */

@media print {
    /* Configuração da página A4 */
    @page {
        size: A4;
        margin: 2cm 1.5cm 2.5cm 1.5cm;
        marks: crop cross;
    }
    
    /* Ocultar elementos não necessários na impressão */
    .topbar,
    .sidebar,
    .sidebar-toggle,
    .page-header,
    .page-header *,
    .card .btn,
    .btn,
    .search-form,
    .form-actions,
    .alert,
    .footer,
    .no-print,
    form:not(.print-keep) {
        display: none !important;
    }
    
    /* Ajustar layout para impressão */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    html, body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 210mm;
        height: auto;
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 11pt;
        line-height: 1.4;
        color: #000 !important;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Cabeçalho do relatório impresso */
    .report-print-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 3cm;
        background: white;
        border-bottom: 3px solid #000;
        padding: 10px 0;
        display: block !important;
        z-index: 1000;
    }
    
    .report-print-header .company-name {
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .report-print-header .report-type {
        font-size: 14pt;
        text-align: center;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .report-print-header .report-date {
        font-size: 10pt;
        text-align: center;
        color: #333;
    }
    
    /* Rodapé do relatório impresso */
    .report-print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2cm;
        background: white;
        border-top: 2px solid #000;
        padding: 8px 0;
        display: block !important;
        font-size: 9pt;
        text-align: center;
        color: #666;
        z-index: 1000;
    }
    
    .report-print-footer::before {
        content: "Página " counter(page) " de " counter(pages);
        display: block;
        margin-bottom: 5px;
    }
    
    /* Estilos para relatórios */
    .report-card {
        page-break-inside: avoid;
        margin: 0 0 30px 0;
        padding: 20px;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .report-header {
        border-bottom: 2px solid #000;
        padding-bottom: 15px;
        margin-bottom: 20px;
        margin-top: 0;
        page-break-after: avoid;
    }
    
    .report-title {
        font-size: 16pt !important;
        color: #000 !important;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
    }
    
    .report-title i {
        display: none;
    }
    
    .report-description {
        font-size: 10pt;
        color: #333;
        margin: 10px 0;
        line-height: 1.6;
        text-align: justify;
    }
    
    .report-info {
        font-size: 9pt;
        color: #000;
        line-height: 1.8;
        margin-bottom: 15px;
    }
    
    .report-info p {
        margin: 3px 0;
    }
    
    .report-info strong {
        font-weight: bold;
    }
    
    /* Tabelas de relatórios */
    .table-report {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
        margin: 15px 0;
        page-break-inside: auto;
    }
    
    .table-report thead {
        background: #e8e8e8 !important;
        display: table-header-group;
    }
    
    .table-report th {
        border: 1px solid #000 !important;
        padding: 8px 6px !important;
        font-weight: bold;
        text-align: left;
        background: #e8e8e8 !important;
        font-size: 9pt;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .table-report td {
        border: 1px solid #666 !important;
        padding: 6px !important;
        font-size: 9pt;
    }
    
    .table-report tbody tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .table-report tbody tr:nth-child(even) {
        background: #f5f5f5 !important;
    }
    
    .table-report tbody tr:nth-child(odd) {
        background: white !important;
    }
    
    .table-report tfoot {
        background: #d0d0d0 !important;
        font-weight: bold;
        display: table-footer-group;
    }
    
    .table-report tfoot td {
        border-top: 3px solid #000 !important;
        padding: 8px 6px !important;
        font-size: 9pt;
    }
    
    /* Badges na impressão */
    .badge {
        border: 1px solid #000 !important;
        padding: 3px 6px !important;
        background: white !important;
        color: #000 !important;
        font-size: 8pt;
        display: inline-block;
    }
    
    .badge-success {
        background: #d4edda !important;
        border-color: #28a745 !important;
    }
    
    .badge-danger {
        background: #f8d7da !important;
        border-color: #dc3545 !important;
    }
    
    .badge-warning {
        background: #fff3cd !important;
        border-color: #ffc107 !important;
    }
    
    .badge-info {
        background: #d1ecf1 !important;
        border-color: #17a2b8 !important;
    }
    
    /* Estatísticas */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 15px 0 20px 0;
        page-break-inside: avoid;
    }
    
    .stat-card {
        border: 2px solid #000 !important;
        padding: 12px !important;
        page-break-inside: avoid;
        background: white !important;
    }
    
    .stat-card .stat-icon {
        font-size: 20px;
        display: none;
    }
    
    .stat-card h3 {
        font-size: 16pt;
        color: #000 !important;
        margin: 5px 0;
        font-weight: bold;
    }
    
    .stat-card p {
        font-size: 9pt;
        color: #333;
        margin: 0;
    }
    
    /* Evitar quebras de página em elementos importantes */
    .table-responsive {
        overflow: visible !important;
        page-break-inside: auto;
    }
    
    /* Seções e subseções */
    .report-section {
        page-break-inside: avoid;
        margin: 20px 0;
    }
    
    .report-section-title {
        font-size: 12pt;
        font-weight: bold;
        margin: 15px 0 10px 0;
        border-bottom: 1px solid #000;
        padding-bottom: 5px;
    }
    
    /* Quebras de página */
    .page-break {
        page-break-before: always;
    }
    
    .no-page-break {
        page-break-inside: avoid;
    }
    
    /* Observações e notas */
    .report-notes {
        margin-top: 20px;
        padding: 10px;
        border: 1px solid #000;
        background: #f9f9f9 !important;
        font-size: 9pt;
        page-break-inside: avoid;
    }
    
    .report-notes h4 {
        font-size: 10pt;
        font-weight: bold;
        margin-bottom: 8px;
    }
    
    .report-notes ul,
    .report-notes ol {
        margin: 5px 0 5px 20px;
    }
    
    .report-notes li {
        margin: 3px 0;
    }
}

/* Estilos para visualização na tela (não impressão) */
.report-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.report-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-info {
    color: #666;
    font-size: 14px;
}

.report-info p {
    margin: 5px 0;
}

.table-report {
    margin-top: 20px;
}

.table-report thead {
    background: linear-gradient(135deg, #d63384, #2563eb);
    color: white;
}

.table-report th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-report tfoot {
    background: #f8f9fa;
    font-weight: 700;
}

.table-report tfoot td {
    border-top: 2px solid var(--primary-color);
    padding: 12px;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

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

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animação para elementos ao entrar na viewport */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Efeito de loading shimmer */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}


