/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --primary-dark: #0f2537;
    --primary-light: #2c5282;
    --secondary-color: #2d3748;
    --accent-color: #f6ad55;
    --accent-dark: #ed8936;
    --accent-light: #fbd38d;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --bg-color: #f7fafc;
    --bg-secondary: #edf2f7;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --sidebar-width: 280px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

/* Login Page - Tema raio/dourado */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #0B1B2B 0%, #1a365d 25%, #0f2537 50%, #1a365d 75%, #0B1B2B 100%);
    position: relative;
    overflow: hidden;
}

/* Efeito raio dourado - overlay */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(246, 173, 85, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Padrão de raios SVG */
.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><linearGradient id="lg" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%23fbbf24" stop-opacity="0.03"/><stop offset="100%25" stop-color="%23d4af37" stop-opacity="0.02"/></linearGradient></defs><path d="M100 0 L120 80 L200 100 L120 120 L100 200 L80 120 L0 100 L80 80 Z" fill="url(%23lg)" transform="translate(50,50) scale(1.2)"/><path d="M250 150 L265 200 L315 215 L265 230 L250 280 L235 230 L185 215 L235 200 Z" fill="url(%23lg)" transform="translate(50,0)"/><path d="M50 250 L70 290 L110 310 L70 330 L50 370 L30 330 L-10 310 L30 290 Z" fill="url(%23lg)"/></svg>');
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    animation: lightningPulse 4s ease-in-out infinite;
}

@keyframes lightningPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.95) 0%, rgba(11, 27, 43, 0.98) 100%);
    border-radius: 20px;
    padding: 56px 48px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(246, 173, 85, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(246, 173, 85, 0.25);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a365d 0%, #f6ad55 30%, #d4af37 50%, #f6ad55 70%, #1a365d 100%);
    box-shadow: 0 0 20px rgba(246, 173, 85, 0.5);
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(246, 173, 85, 0.25);
}

.login-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 220px;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    animation: fadeInDown 0.6s ease-out;
}

.login-logo:hover {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
    transform: scale(1.03) translateY(-2px);
}

.login-header h1 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 20px rgba(251, 191, 36, 0.3);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.login-header p {
    color: #fbbf24;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 0 10px rgba(251, 191, 36, 0.4);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.login-form {
    margin-top: 36px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 0 12px rgba(251, 191, 36, 0.5);
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[name="captcha"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(246, 173, 85, 0.5);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: inherit;
}

.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder,
.login-form input[name="captcha"]::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[name="captcha"]:focus {
    outline: none;
    border-color: #f6ad55;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(246, 173, 85, 0.2);
    transform: translateY(-1px);
}

/* CAPTCHA - tema dourado */
.captcha-group {
    margin-bottom: 24px;
}
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.captcha-image {
    height: 60px;
    width: auto;
    border: 2px solid rgba(246, 173, 85, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.captcha-image:hover {
    border-color: #f6ad55;
    box-shadow: 0 0 20px rgba(246, 173, 85, 0.4);
    transform: scale(1.02);
}
.captcha-wrapper input {
    flex: 1;
    min-width: 0;
    max-width: 140px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.captcha-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 0 8px rgba(251, 191, 36, 0.4);
}

.login-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 10px;
    background: linear-gradient(135deg, #f6ad55 0%, #d4af37 50%, #f59e0b 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(246, 173, 85, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    color: #1a365d;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(246, 173, 85, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f6ad55 50%, #d4af37 100%);
}

.login-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(246, 173, 85, 0.4);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: #fbbf24;
    padding-top: 24px;
    border-top: 2px solid rgba(246, 173, 85, 0.25);
    animation: fadeIn 0.8s ease-out 0.5s both;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.login-footer p {
    margin: 0;
    line-height: 1.6;
}

/* Flash messages no login */
.login-box .flash-message {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideInDown 0.4s ease-out;
}

.login-box .flash-error {
    background: rgba(254, 202, 202, 0.2);
    color: #fecaca;
    border: 2px solid rgba(245, 101, 101, 0.5);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 36px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.sidebar-logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 180px;
    min-height: 120px;
    display: block;
    filter: brightness(1.2) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    object-fit: contain;
}

.sidebar-logo:hover {
    filter: brightness(1.35) drop-shadow(0 4px 12px rgba(246, 173, 85, 0.5));
    transform: scale(1.03);
}

.sidebar-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    margin: 2px 12px;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: var(--accent-color);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(246, 173, 85, 0.2) 0%, rgba(246, 173, 85, 0.1) 100%);
    color: var(--accent-light);
    border-left-color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(246, 173, 85, 0.2);
}

.nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 14px;
    flex-shrink: 0;
    stroke-width: 2.5;
    opacity: 0.85;
    transition: all 0.25s;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
    transform: scale(1.08);
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.1);
}

.user-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.user-email {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: rgba(245, 101, 101, 0.15);
    color: #ffb3b3;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.logout-btn:hover {
    background: rgba(245, 101, 101, 0.25);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    background: var(--card-bg);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.content-wrapper {
    flex: 1;
    padding: 32px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Flash Messages */
.flash-message {
    padding: 18px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: var(--shadow-md);
}

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

.flash-success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #742a2a;
    border-left: 4px solid var(--error-color);
}

.flash-info {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    color: #2c5282;
    border-left: 4px solid var(--info-color);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.card-body {
    padding: 24px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white !important;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white !important;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
    color: white !important;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, var(--success-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color) 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, var(--error-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: none;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
    transform: none;
}

/* Forms */
.form {
    max-width: 900px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--card-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.form-section {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.form-section h3 {
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
    flex-wrap: wrap;
}

/* Item Rows (Orçamentos) */
.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-light);
    transition: all 0.3s;
}

.item-row:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.item-total {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.total-display {
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.total-display label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-display strong {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.total-section {
    margin: 32px 0;
    padding: 0;
}

.total-section .total-display {
    margin: 0;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

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

.data-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.data-table tbody tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

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

.data-table a:not(.btn) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.data-table a:not(.btn):hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Garantir que botões nas tabelas sejam visíveis */
.data-table .btn {
    display: inline-block;
    margin: 0 4px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

/* Coluna de ações na tabela */
.data-table td:last-child {
    white-space: nowrap;
    text-align: center;
}

.data-table td:last-child .btn {
    min-width: 70px;
}

/* Valor mascarado (mosaico) - clique para revelar */
.value-mask {
    display: inline-block;
    padding: 4px 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #e2e8f0,
        #e2e8f0 2px,
        #cbd5e0 2px,
        #cbd5e0 4px
    );
    color: #64748b;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.value-mask:hover {
    background: repeating-linear-gradient(
        -45deg,
        #cbd5e0,
        #cbd5e0 2px,
        #94a3b8 2px,
        #94a3b8 4px
    );
}

.value-mask.revealed {
    background: transparent;
    color: inherit;
}

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
}

.badge-warning {
    background: linear-gradient(135deg, #feebc8 0%, #fbd38d 100%);
    color: #7c2d12;
}

.badge-secondary {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #2d3748;
}

.badge-primary {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    color: #1a365d;
}

.badge-danger {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #742a2a;
}

/* User Avatar */
.user-avatar {
    flex-shrink: 0;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

/* Filters Form */
.filters-form {
    margin: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.filter-actions .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

/* Dashboard */
.dashboard {
    max-width: 1600px;
    width: 100%;
}

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

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.stat-card-highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--primary-color);
    border-color: var(--accent-dark);
}

.stat-card-highlight::before {
    background: var(--primary-color);
}

.stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.2) 0%, rgba(246, 173, 85, 0.1) 100%);
    border-radius: 14px;
    color: var(--accent-color);
    border: 2px solid rgba(246, 173, 85, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-icon svg {
    width: 32px;
    height: 32px;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(3deg);
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.3) 0%, rgba(246, 173, 85, 0.2) 100%);
    border-color: var(--accent-color);
}

.stat-card-highlight .stat-icon {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.2) 0%, rgba(26, 54, 93, 0.1) 100%);
    color: var(--primary-color);
    border-color: rgba(26, 54, 93, 0.2);
}

.stat-card-highlight:hover .stat-icon {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.3) 0%, rgba(26, 54, 93, 0.2) 100%);
    border-color: var(--primary-color);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.7;
    font-weight: 700;
}

.stat-value-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.btn-toggle-balance {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #f6ad55;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-toggle-balance:hover {
    color: #fbbf24;
    background: rgba(246, 173, 85, 0.15);
}

.btn-toggle-balance:active {
    transform: scale(0.95);
}

.btn-toggle-balance svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.btn-toggle-balance .icon-eye-off {
    display: none;
}

.btn-toggle-balance.hidden .icon-eye {
    display: none;
}

.btn-toggle-balance.hidden .icon-eye-off {
    display: block;
}

.stat-card-highlight .btn-toggle-balance {
    color: #d4af37;
}

.stat-card-highlight .btn-toggle-balance:hover {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

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

/* View Sections */
.view-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}

.view-section:last-child {
    border-bottom: none;
}

.view-section h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.info-grid > div {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.info-grid > div:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.highlight-value {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 800;
}

.info-note {
    padding: 20px;
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    border-left: 4px solid var(--info-color);
    border-radius: 10px;
    color: #2c5282;
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .top-header {
        padding: 20px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .item-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-header {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-header,
    .page-header,
    .btn {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Scrollbar personalizado */
.sidebar-nav::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-nav::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Paginação */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.pagination span {
    color: #4a5568;
    font-weight: 500;
}

.pagination .btn {
    min-width: 80px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

/* Filter Form - Design Moderno e Horizontal */
.filter-card {
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-left: 4px solid #F5B301;
}

.filter-card .card-body {
    padding: 20px 25px;
}

.filter-form {
    margin: 0;
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

.filter-group-expanded {
    flex: 2;
    min-width: 280px;
}

.filter-label {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #0B1B2B;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.filter-label svg {
    opacity: 0.8;
    color: #F5B301;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: #2d3748;
    font-weight: 500;
}

.filter-input:hover,
.filter-select:hover {
    border-color: #cbd5e0;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #F5B301;
    box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.15);
    transform: translateY(-1px);
}

.filter-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 45px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-shrink: 0;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    white-space: nowrap;
    min-width: 110px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.filter-btn svg {
    flex-shrink: 0;
}

/* Responsivo para filtros */
@media (max-width: 1200px) {
    .filter-row {
        flex-wrap: wrap;
    }
    
    .filter-group {
        min-width: calc(50% - 9px);
    }
    
    .filter-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group-expanded {
        min-width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Actions Column */
.actions-column {
    white-space: nowrap;
}

.actions-column .btn {
    margin-right: 5px;
}

.actions-column .btn:last-child {
    margin-right: 0;
}

/* Modal */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay[style*="display: flex"],
.modal-overlay.show,
.modal-overlay[style*="flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex !important;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    position: relative;
    z-index: 10000;
    margin: 20px;
}

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

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0B1B2B 0%, #1a365d 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: #f9fafb;
}

.modal-search {
    margin-bottom: 20px;
    position: relative;
}

.modal-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #a0aec0;
    pointer-events: none;
    z-index: 1;
}

.modal-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}

.modal-search input:focus {
    outline: none;
    border-color: #F5B301;
    box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.1);
}

.modal-search input:focus + .search-icon,
.modal-search:has(input:focus) .search-icon {
    color: #F5B301;
}

.servicos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.servico-item {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    user-select: none;
}

.servico-item:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-color: #F5B301;
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 179, 1, 0.25);
}

.servico-item:active {
    transform: translateX(4px) translateY(0);
}

.servico-info {
    flex: 1;
}

.servico-nome {
    display: block;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.servico-categoria {
    display: inline-block;
    background: linear-gradient(135deg, #0B1B2B 0%, #1a365d 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(11, 27, 43, 0.2);
}

.servico-descricao {
    display: block;
    color: #718096;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.servico-valor {
    color: #F5B301;
    font-size: 18px;
    font-weight: 700;
    margin-left: 20px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(245, 179, 1, 0.2);
}

.modal-footer {
    padding: 18px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

/* Scrollbar do modal */
.servicos-list::-webkit-scrollbar {
    width: 8px;
}

.servicos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.servicos-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.servicos-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Modal de Orçamentos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
}

.orcamento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.orcamento-card:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Alert Modal */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.custom-alert-overlay.show {
    display: flex;
}

.custom-alert-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.custom-alert-icon {
    padding: 30px 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0B1B2B 0%, #1a365d 100%);
}

.custom-alert-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 2.5;
}

.custom-alert-icon svg.info {
    color: #3182ce;
}

.custom-alert-icon svg.success {
    color: #38a169;
}

.custom-alert-icon svg.warning {
    color: #F5B301;
}

.custom-alert-icon svg.error {
    color: #e53e3e;
}

.custom-alert-body {
    padding: 25px;
    text-align: center;
}

.custom-alert-body h3 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
}

.custom-alert-body p {
    margin: 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

.custom-alert-footer {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    background: #f7fafc;
}

.custom-alert-footer .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(11, 27, 43, 0.2);
    transition: all 0.2s;
}

.custom-alert-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 27, 43, 0.3);
}

/* Modal de Confirmação */
.confirm-modal-content {
    max-width: 480px;
}

.confirm-footer {
    justify-content: space-between;
    gap: 12px;
}

.confirm-footer .btn {
    flex: 1;
    min-width: 120px;
}

.confirm-footer .btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    color: #fff;
}

.confirm-footer .btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
    transform: translateY(-2px);
}

.confirm-footer .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.confirm-footer .btn-secondary:hover {
    background: #cbd5e0;
}

/* Cores específicas para cada tipo de alerta */
.custom-alert-content[data-type="success"] .custom-alert-icon {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.custom-alert-content[data-type="error"] .custom-alert-icon {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.custom-alert-content[data-type="warning"] .custom-alert-icon {
    background: linear-gradient(135deg, #F5B301 0%, #d69e2e 100%);
}

.custom-alert-content[data-type="info"] .custom-alert-icon {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

/* Estado vazio do modal */
.servicos-list .text-center {
    padding: 40px 20px;
    color: #718096;
    text-align: center;
}

.servicos-list .text-center a {
    color: #F5B301;
    text-decoration: none;
    font-weight: 600;
}

.servicos-list .text-center a:hover {
    text-decoration: underline;
}

/* Melhorias visuais adicionais */
.servico-item[style*="display: none"] {
    display: none !important;
}

/* Animação de entrada dos itens */
.servico-item {
    animation: fadeInItem 0.3s ease;
}

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