/* Base Reset & Variables */
:root {
    --bg-base: #0B0A13;
    --bg-surface: rgba(22, 20, 39, 0.65);
    --bg-surface-elevated: rgba(33, 30, 58, 0.85);
    --bg-glow: rgba(103, 61, 230, 0.15);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(103, 61, 230, 0.3);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --color-purple: #8B5CF6;
    --color-purple-rgb: 139, 92, 246;
    --color-green: #10B981;
    --color-green-rgb: 16, 185, 129;
    --color-blue: #3B82F6;
    --color-blue-rgb: 59, 130, 246;
    --color-yellow: #F59E0B;
    --color-yellow-rgb: 245, 158, 11;
    --color-red: #EF4444;
    --color-red-rgb: 239, 68, 68;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Login Wrapper & Styling */
.login-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
}

.login-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -150px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.login-header .logo {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--color-purple);
}

.purple-glow {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.login-header h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

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

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

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
}

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

.form-row {
    display: flex;
    gap: 15px;
}

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

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-muted);
}

.error-msg {
    color: var(--color-red);
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple) 0%, #7C3AED 100%);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-secondary);
}

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

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

.btn-danger-outline {
    background: transparent;
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-red);
}

.btn-block {
    width: 100%;
}

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

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: rgba(11, 10, 19, 0.95);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

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

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

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

.nav-item.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--color-purple);
    border-radius: 2px;
}

.badge {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    margin-left: auto;
}

.badge-warning {
    background: var(--color-yellow);
    color: #000;
}

.sidebar-footer {
    margin-top: auto;
}

/* App Main Content Area */
.app-content {
    flex-grow: 1;
    margin-left: 260px;
    min-height: 100vh;
    padding: 40px;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139, 92, 246, 0.05) 0%, rgba(0,0,0,0) 80%);
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-info h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 30px;
}

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

.dot-success {
    background: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
}

.dot-success::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-green);
    animation: pulse 1.8s infinite ease-in-out;
}

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

/* Panes switching */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* Server Cards Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.server-card {
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-muted);
    transition: var(--transition-normal);
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.server-card.status-running::before {
    background: var(--color-green);
}

.server-card.status-warning::before {
    background: var(--color-yellow);
}

.server-card.status-critical::before {
    background: var(--color-red);
}

.server-card.status-stopped::before {
    background: var(--color-red);
}

.server-card.selected {
    border-color: var(--color-purple);
    box-shadow: var(--shadow-glow);
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.server-icon {
    font-size: 22px;
    color: var(--color-purple);
}

.server-status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-running {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-stopped {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning-alert {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-critical-alert {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.server-card-body h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.server-ip {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
    display: block;
}

.server-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Expanded Server Details */
.details-section {
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
    animation: fadeIn 0.4s ease-out;
}

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

.details-title-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.details-meta-tags {
    display: flex;
    gap: 10px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.tag i {
    margin-right: 4px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Metrics Widgets */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Specific glows */
.card-glow-purple { box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.05); }
.card-glow-green { box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.05); }
.card-glow-blue { box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.05); }
.card-glow-yellow { box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.05); }

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.widget-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

.progress-purple { background: var(--color-purple); }
.progress-green { background: var(--color-green); }
.progress-blue { background: var(--color-blue); }
.progress-yellow { background: var(--color-yellow); }
.progress-red { background: var(--color-red); }

.widget-footer {
    font-size: 11px;
    color: var(--text-muted);
}

.widget-footer i {
    margin-right: 4px;
}

/* Charts */
.chart-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.chart-range-picker {
    display: flex;
    gap: 5px;
}

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

.btn-range.active {
    background: var(--color-purple);
    color: #FFF;
    border-color: var(--color-purple);
}

/* Settings View Layout */
.settings-grid {
    max-width: 800px;
    margin: 0 auto;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-card-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-card-header i {
    font-size: 18px;
    color: var(--color-purple);
}

.settings-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.settings-card-body {
    padding: 30px;
}

.form-actions {
    padding: 20px 30px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: flex-end;
}

/* Threshold Sliders */
.threshold-sliders-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.threshold-slider-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
}

.threshold-slider-group h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.threshold-slider-group h5 i {
    margin-right: 6px;
    color: var(--color-purple);
}

/* Channels Accordions */
.channel-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.channel-toggle {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.channel-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-title i {
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.text-telegram { color: #0088CC; }
.text-discord { color: #5865F2; }
.text-slack { color: #4A154B; }
.text-email { color: #10B981; }

.channel-title h5 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.channel-title p {
    font-size: 11px;
    color: var(--text-muted);
}

.channel-fields {
    padding: 0 20px 20px 20px;
    border-top: 1px dashed var(--border-color);
    margin-top: 5px;
    display: none;
    animation: slideDown 0.3s ease-out forwards;
}

.channel-group.open .channel-fields {
    display: block;
}

/* Custom Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--color-green);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Alert Logs Tab */
.logs-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.logs-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logs-title-area h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logs-title-area p {
    color: var(--text-secondary);
    font-size: 13px;
}

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

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

.logs-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 16px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.logs-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.logs-table .badge-log {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-log-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-yellow);
}

.badge-log-critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.badge-log-resolved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
}

.empty-state {
    text-align: center;
    padding: 60px !important;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 14px;
}

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

.toast {
    min-width: 320px;
    background: #1F1D2E;
    border-left: 4px solid var(--color-purple);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: var(--transition-fast);
}

.toast-success { border-left-color: var(--color-green); }
.toast-error { border-left-color: var(--color-red); }
.toast-warning { border-left-color: var(--color-yellow); }

.toast-icon { font-size: 18px; }
.toast-success .toast-icon { color: var(--color-green); }
.toast-error .toast-icon { color: var(--color-red); }
.toast-warning .toast-icon { color: var(--color-yellow); }

.toast-msg {
    font-size: 13px;
    font-weight: 500;
    flex-grow: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

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

/* Spinner / Loading details */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
    gap: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid var(--color-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.3; }
    100% { transform: scale(2.0); opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Rules */
@media (max-width: 992px) {
    .app-sidebar {
        width: 70px;
        padding: 20px 10px;
    }
    .sidebar-brand span,
    .nav-item span,
    .sidebar-footer span {
        display: none;
    }
    .app-content {
        margin-left: 70px;
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
