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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary: #64748B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-sidebar: #1E293B;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos para a nova interface de teste de APIs */
.api-test-container {
    transition: all 0.3s ease;
}

.api-test-section {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.api-test-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.api-test-config {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.api-test-config h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.api-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.api-info-item label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.api-info-value {
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Validação de CPF */
.cpf-validation {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.cpf-validation.valid {
    color: var(--success);
}

.cpf-validation.invalid {
    color: var(--danger);
}

.cpf-validation.warning {
    color: var(--warning);
}

/* Animações de transição suaves */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Classes utilitárias adicionais */
.text-danger {
    color: var(--danger) !important;
}

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

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

.api-info-container {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 200;
    transition: transform 0.3s ease-out;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.2);
    color: white;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    position: relative;
    cursor: pointer;
}

.nav-group-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-arrow {
    margin-left: auto;
    transition: transform 0.2s;
    width: 16px;
    height: 16px;
}

.nav-group.expanded .nav-arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    margin-left: 20px;
    margin-top: 4px;
}

.nav-group.expanded .nav-submenu {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

.nav-subitem {
    padding: 10px 16px;
    font-size: 14px;
    margin-left: 8px;
}

.nav-subitem svg {
    width: 16px;
    height: 16px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Topbar */
.topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-primary);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

/* Content Sections */
.content-section {
    display: none;
    padding: 32px;
    animation: fadeIn 0.3s ease-out;
}

.content-section.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

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

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-state p {
    margin-top: 16px;
    font-size: 14px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Ambientes List Container - Full Width Table */
.ambientes-list-container {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}

.ambientes-list-container .table-container {
    width: 100%;
    overflow-x: auto;
}

.ambientes-list-container .data-table {
    width: 100%;
    border-collapse: collapse;
}

.ambientes-list-container .data-table th {
    background: var(--bg-secondary);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.ambientes-list-container .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.ambientes-list-container .data-table tbody tr:hover {
    background: var(--bg-primary);
}

.ambientes-list-container .data-table .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card .info {
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .info strong {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 120px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #D97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-icon-sm:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Actions */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 10px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-item label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Alerts */
.alerts-container {
    padding: 0 32px;
    margin-top: 20px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
    align-items: center;
    justify-content: center;
}

.modal.active,
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 92%;
    max-width: 760px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s ease-out;
    z-index: 1001;
    box-sizing: border-box;
    margin: auto;
}

@media (min-width: 1200px) {
    .modal-content {
        margin: 40px auto 40px 32px;
        max-width: 880px;
        border-left: 5px solid #2E86DE;
    }
}

.modal-large {
    max-width: 900px;
}

.modal-large .modal-body {
    max-width: 100%;
    overflow-x: hidden;
}

.modal-large .form-group {
    max-width: 100%;
    overflow-x: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header {
    background: linear-gradient(180deg, rgba(46, 134, 222, 0.08), rgba(46, 134, 222, 0.00));
}

.modal-header {
    background: linear-gradient(180deg, rgba(46, 134, 222, 0.08), rgba(46, 134, 222, 0.00));
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header h2 {
    text-shadow: 0 1px 0 rgba(46, 134, 222, 0.15);
}

.modal-header h2 {
    text-shadow: 0 1px 0 rgba(46, 134, 222, 0.15);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.modal-body {
    padding: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-body {
    border-top: 1px solid rgba(46, 134, 222, 0.12);
}

/* Estética moderna: títulos dos bancos */
.result-header .result-title {
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    padding-right: 8px;
    background: linear-gradient(90deg, #111827, #1F2937);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.05);
}

.result-header .result-title::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2E86DE, #6AA8F0);
    box-shadow: 0 0 6px rgba(46, 134, 222, 0.4);
}

/* Cabeçalhos de grupos */
.group-header h4 {
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.results-group--sucesso .group-header h4 {
    background: rgba(16, 185, 129, 0.10);
    color: #065F46;
}

.results-group--erro .group-header h4 {
    background: rgba(239, 68, 68, 0.10);
    color: #7F1D1D;
}

.group-header h4:hover {
    transform: translateY(-1px);
}

/* Toggle de visualização de simulação */
/* Removido toggle de simulação */
.modal-body {
    border-top: 1px solid rgba(46, 134, 222, 0.12);
}

/* Estética moderna: títulos dos bancos */
.result-header .result-title {
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    padding-right: 8px;
    background: linear-gradient(90deg, #111827, #1F2937);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.05);
}

.result-header .result-title::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2E86DE, #6AA8F0);
    box-shadow: 0 0 6px rgba(46, 134, 222, 0.4);
}

/* Cabeçalhos de grupos */
.group-header h4 {
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.results-group--sucesso .group-header h4 {
    background: rgba(16, 185, 129, 0.10);
    color: #065F46;
}

.results-group--erro .group-header h4 {
    background: rgba(239, 68, 68, 0.10);
    color: #7F1D1D;
}

.group-header h4:hover {
    transform: translateY(-1px);
}

/* Toggle de visualização de simulação */
.simulacao-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F3F4F6;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
}

.switch {
    position: relative;
    width: 42px;
    height: 24px;
    background: #D1D5DB;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: left 0.2s ease;
}

.switch.active {
    background: #2E86DE;
}

.switch.active::after {
    left: 20px;
}

.simulacao-indicador {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2E86DE;
    font-weight: 600;
}

.modal-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Estilos específicos para Modal CLT Formulário */
.modal-clt-formulario {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
}

.modal-clt-formulario .modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-bottom: none;
    padding: 24px 28px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-clt-formulario .modal-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.modal-clt-formulario .modal-close {
    color: white;
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.modal-clt-formulario .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.modal-clt-formulario .modal-body {
    background: #ffffff;
    padding: 28px;
}

.modal-clt-formulario #info-simulacao-clt {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-light);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-clt-formulario #info-simulacao-clt h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-clt-formulario #info-simulacao-clt h3::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='22'%3E%3C/line%3E%3Cpolyline points='17 5 12 10 7 5'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
}

.modal-clt-formulario #detalhes-simulacao-clt {
    color: var(--text-primary);
    line-height: 1.8;
}

.modal-clt-formulario #detalhes-simulacao-clt>div {
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-clt-formulario #detalhes-simulacao-clt strong {
    color: var(--primary-dark);
    font-weight: 600;
    min-width: 140px;
    display: inline-block;
}

.modal-clt-formulario form>div>h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ícones SVG padronizados - seguindo padrão do sistema */
.modal-clt-formulario form>div:nth-child(1)>h3::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
}

.modal-clt-formulario form>div:nth-child(2)>h3::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
}

.modal-clt-formulario form>div:nth-child(3)>h3::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'%3E%3C/rect%3E%3Ccircle cx='12' cy='12' r='2'%3E%3C/circle%3E%3Cpath d='M6 12h.01M18 12h.01'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
}

.modal-clt-formulario .form-group {
    margin-bottom: 18px;
}

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

.modal-clt-formulario .form-group input,
.modal-clt-formulario .form-group select {
    border: 2px solid var(--border);
    transition: all 0.2s ease;
    padding: 14px 18px;
    font-size: 15px;
    height: 44px;
}

.modal-clt-formulario .form-group input:focus,
.modal-clt-formulario .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.modal-clt-formulario .modal-actions {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-top: 2px solid var(--border);
    padding: 24px 28px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-clt-formulario .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.modal-clt-formulario .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -1px rgba(79, 70, 229, 0.4);
}

.modal-clt-formulario .btn-secondary {
    background: white;
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-clt-formulario .btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--text-secondary);
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.spinner.inline {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
}

.spinner.inline--md {
    width: 20px;
    height: 20px;
}

.spinner.inline--lg {
    width: 24px;
    height: 24px;
}

.result-card .loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Indicador de Progresso do Fluxo */
.progress-indicator {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: #e9ecef;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.progress-step.completed+.step-connector {
    background: #28a745;
}

/* Botão de Reset do Fluxo */
.btn-reset-fluxo {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-reset-fluxo:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

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

.btn-reset-fluxo i {
    font-size: 10px;
}

/* Loading States */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Transições suaves para containers */
.api-test-section {
    transition: all 0.3s ease;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.table thead {
    background: var(--bg-primary);
}

.table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
}

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

.table tbody tr:hover {
    background: var(--bg-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        z-index: 200;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    /* Overlay quando sidebar está aberto */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
    }

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

    .topbar {
        padding: 16px 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
    }
}

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

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

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

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

/* Tabs */
.btn-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -2px;
}

.btn-tab:hover {
    color: var(--primary);
}

.btn-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Resultados CLT - versão compacta e moderna */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.result-card {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background: var(--bg-primary);
    transition: var(--transition);
}

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

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-title {
    font-weight: 600;
    color: var(--text-primary);
}

.spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* CLT Consulta - layout horizontal compacto */
.clt-consulta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.clt-consulta-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.clt-consulta-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.clt-consulta-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.clt-consulta-fields .form-group,
.clt-consulta-actions .form-group {
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .clt-consulta-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .clt-consulta-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .clt-consulta-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group select {
        font-size: 12px;
    }
}

/* Checkbox grupo horizontal com scroll controlado */
.checkbox-group.horizontal {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}

.checkbox-group.horizontal .checkbox-item {
    scroll-snap-align: start;
}

/* Título h1 modernizado */
.page-title {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(99, 102, 241, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

/* UI/UX modernização global */
.content-section {
    margin-bottom: 24px;
}

.section-header h2 {
    font-weight: 700;
    letter-spacing: -0.2px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.badge {
    transition: all 0.3s ease;
}

.badge--sm {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Agrupamento de resultados (Sucessos vs Erros) */
.results-group {
    margin-top: 12px;
}

.results-group .group-header h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-group--sucesso .group-header h4 {
    color: #0F766E;
}

.results-group--erro .group-header h4 {
    color: #B91C1C;
}

.results-group--sucesso .result-card {
    border-left: 3px solid #10B981;
}

.results-group--erro .result-card {
    border-left: 3px solid #EF4444;
}

/* Notifications System */
.notifications-container {
    position: relative;
    margin-right: 16px;
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure full height alignment */
}

.notification-bell {
    position: relative;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-bell:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.notification-badge.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 340px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    transform-origin: top right;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notifications-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.notifications-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.notifications-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: default;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.alerta {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.notification-item.sucesso {
    border-left: 4px solid #10b981;
    background: #ecfdf5;
}

.notification-item.erro {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.notification-item.info {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
}

.notification-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-details {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-family: monospace;
}

.notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: right;
    margin-top: 4px;
}

.notification-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}