/* Base System & Variables */
:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Cores Premium */
    --bg-app: #080c14;
    --bg-sidebar: #0f1624;
    --bg-card: rgba(22, 32, 51, 0.65);
    --bg-card-hover: rgba(30, 43, 69, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Acentos em Degradê */
    --grad-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --grad-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --grad-blue: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --grad-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-red: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --grad-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-blue: #0ea5e9;
    --accent-green: #10b981;
    --accent-red: #f43f5e;
    
    --sidebar-width: 260px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* App Container Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--grad-indigo);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.logo-icon i {
    width: 20px;
    height: 20px;
    color: #fff;
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-text span {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}

.sidebar-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    transition: var(--transition-smooth);
    width: 100%;
}

.nav-item i {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo);
    border-left: 3px solid var(--accent-indigo);
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    padding-left: 13px;
}

.nav-item.active i {
    color: var(--accent-indigo);
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.status-badge-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.status-dot.green {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-green 2s infinite;
}

.status-dot.yellow {
    background-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
    animation: pulse-purple 1.5s infinite;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.content-header {
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 12, 20, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10;
}

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

.header-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Base Buttons */
.btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--grad-indigo);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:disabled {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-accent {
    background: var(--grad-purple);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
    background: var(--grad-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent-indigo);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* View Viewport & Animation */
.view-viewport {
    flex-grow: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

.view-pane {
    display: none;
    animation: fade-in-up 0.4s ease-out forwards;
}

.view-pane.active {
    display: block;
}

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

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 22px;
    height: 22px;
    color: #fff;
}

.stat-icon.purple { background: var(--grad-purple); }
.stat-icon.blue { background: var(--grad-blue); }
.stat-icon.green { background: var(--grad-green); }

.stat-details .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-details .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Status Hero Card */
.status-hero-card {
    background: linear-gradient(135deg, rgba(22, 32, 51, 0.7) 0%, rgba(14, 21, 37, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.status-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-indigo);
}

.hero-left h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-status-message {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text-primary);
}

.hero-timestamp {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.pulse-indicator {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-indicator i {
    width: 22px;
    height: 22px;
    color: var(--accent-indigo);
}

.pulse-indicator.running {
    animation: rotate-sync 2s linear infinite;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.pulse-indicator.running i {
    color: var(--accent-purple);
}

/* Dashboard Split Layout */
.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.split-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 350px;
    display: flex;
    flex-direction: column;
}

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

.split-card .card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.split-card .card-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Lists and Items */
.recent-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-backup-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.recent-backup-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.backup-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.backup-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.backup-item-actions {
    display: flex;
    gap: 6px;
}

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

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.btn-icon.danger:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-red);
}

.btn-icon i {
    width: 15px;
    height: 15px;
}

/* Mini Console */
.mini-console {
    background-color: #04060b;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 100%;
    padding: 12px 16px;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-y: auto;
}

.mini-console p {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.loading-placeholder {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 40px 0;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px 10px 42px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px var(--border-glow);
}

/* Data Tables */
.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

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

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

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.db-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.db-badge.mysql { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.db-badge.postgres { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.db-badge.mssql { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.table-actions {
    display: flex;
    gap: 8px;
}

/* Console Wrapper */
.console-wrapper {
    background-color: #04060b;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
}

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

.console-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.console-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}

.console-body {
    flex-grow: 1;
    padding: 20px 24px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-y: auto;
}

.console-body p {
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Settings Form */
.settings-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    padding: 30px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.settings-header i {
    width: 24px;
    height: 24px;
    color: var(--accent-indigo);
}

.settings-header h3 {
    font-size: 16px;
    font-weight: 600;
}

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

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

.form-group input, 
.form-group select {
    width: 100%;
    background-color: rgba(8, 12, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px var(--border-glow);
}

.form-help {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* Modals & Popups */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 6, 11, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 580px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

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

.btn-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group.col-6 { width: 50%; }
.form-group.col-4 { width: 33.33%; }
.form-group.col-8 { width: 66.66%; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.footer-right {
    display: flex;
    gap: 10px;
}

/* Connection Test Modal Specifics */
.modal-alert .modal-card {
    width: 460px;
}

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

.justify-center {
    justify-content: center;
}

.test-result-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.test-result-indicator.loading {
    background-color: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: pulse-indigo 1.5s infinite;
}

.test-result-indicator.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.test-result-indicator.error {
    background-color: rgba(244, 63, 94, 0.1);
    border: 2px solid rgba(244, 63, 94, 0.3);
}

.test-result-indicator i {
    width: 28px;
    height: 28px;
}

.test-result-indicator.loading i {
    color: var(--accent-indigo);
    animation: rotate-sync 2s linear infinite;
}

.test-result-indicator.success i {
    color: var(--accent-green);
}

.test-result-indicator.error i {
    color: var(--accent-red);
}

.test-result-indicator.loading i::before {
    content: '';
}

.test-result-indicator.success i::before {
    content: '';
}

.test-result-indicator.error i::before {
    content: '';
}

.test-error-log {
    margin-top: 16px;
    text-align: left;
    background-color: #04060b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.test-error-log h5 {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.test-error-log pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: var(--accent-red);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-indigo);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    animation: toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.info { border-left-color: var(--accent-blue); }
.toast.warning { border-left-color: var(--accent-purple); }

.toast-icon i {
    width: 18px;
    height: 18px;
}

.toast.success .toast-icon i { color: var(--accent-green); }
.toast.error .toast-icon i { color: var(--accent-red); }
.toast.info .toast-icon i { color: var(--accent-blue); }
.toast.warning .toast-icon i { color: var(--accent-purple); }

.toast-content p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Keyframe Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-slide-in {
    to {
        transform: translateX(0);
    }
}

@keyframes rotate-sync {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@keyframes pulse-indigo {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Mobile Header Button */
.btn-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-menu:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-menu i {
    width: 24px;
    height: 24px;
}

.header-left {
    display: flex;
    align-items: center;
}

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

@media (max-width: 768px) {
    .btn-menu {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .content-header {
        padding: 16px 20px;
    }
    
    .view-viewport {
        padding: 20px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Responsive forms and modals */
    .modal-card {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.col-4,
    .form-group.col-6,
    .form-group.col-8 {
        width: 100%;
    }
    
    /* Make tables scrollable horizontally */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
