/* ============================================================================
   DEPLOYMASTER - ANIME INSPIRED UI SYSTEM
   Modern, Clean, Professional Design
   ============================================================================ */

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Palette - Inspired by Anime Aesthetics */
    --primary-azure: #3b82f6;
    --primary-violet: #8b5cf6;
    --primary-pink: #ec4899;
    --primary-cyan: #06b6d4;
    
    /* Neutral Palette */
    --neutral-950: #0a0a0f;
    --neutral-900: #0f0f17;
    --neutral-800: #18181f;
    --neutral-700: #27272f;
    --neutral-600: #3f3f4f;
    --neutral-500: #6b6b7f;
    --neutral-400: #9999af;
    --neutral-300: #c7c7d7;
    --neutral-200: #e5e5ef;
    --neutral-100: #f5f5f9;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-tertiary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    /* Effects */
    --glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-secondary: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Borders */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-medium: 1px solid rgba(255, 255, 255, 0.1);
    --border-strong: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Timing */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--neutral-950);
    color: var(--neutral-100);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   ANIMATED BACKGROUND
   ============================================================================ */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                var(--neutral-950);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.text-display {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-title {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.text-heading {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.text-subheading {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

.text-body {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-tiny {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--neutral-400);
}

.text-dimmed {
    color: var(--neutral-500);
}

/* ============================================================================
   LOGIN PAGE
   ============================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: slideUpFade 0.6s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--glow-primary);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

.login-logo svg {
    width: 32px;
    height: 32px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--neutral-400);
    font-size: 0.9375rem;
}

.login-card {
    background: rgba(24, 24, 31, 0.8);
    border: var(--border-medium);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-300);
    margin-bottom: 0.5rem;
}

.deployment-type-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--neutral-900);
    border: var(--border-medium);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.deployment-type-option:hover {
    background: var(--neutral-800);
    border-color: var(--neutral-600);
}

.deployment-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-azure);
    cursor: pointer;
}

.deployment-type-option:has(input:checked) {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-azure);
}

.deployment-type-option span {
    flex: 1;
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: var(--neutral-900);
    border: var(--border-medium);
    border-radius: 10px;
    color: var(--neutral-100);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-azure);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--neutral-800);
}

.form-input::placeholder {
    color: var(--neutral-500);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: var(--neutral-900);
    border: var(--border-medium);
    border-radius: 10px;
    color: var(--neutral-100);
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-azure);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: var(--border-medium);
    background: var(--neutral-900);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--primary-azure);
    border-color: var(--primary-azure);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-top: 0.375rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--glow-primary), var(--shadow-md);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--neutral-800);
    color: var(--neutral-100);
    border: var(--border-medium);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}

.btn-ghost {
    background: transparent;
    color: var(--neutral-300);
    border: var(--border-medium);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--neutral-800);
    color: var(--neutral-100);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   MAIN LAYOUT
   ============================================================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(24, 24, 31, 0.6);
    border-right: var(--border-subtle);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: var(--border-subtle);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.sidebar-logo svg {
    width: 20px;
    height: 20px;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    color: var(--neutral-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: var(--neutral-800);
    color: var(--neutral-100);
}

.nav-item.active {
    background: var(--neutral-800);
    color: var(--primary-azure);
    border-left: 3px solid var(--primary-azure);
    padding-left: calc(0.75rem - 3px);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: var(--border-subtle);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.topbar {
    height: 72px;
    background: rgba(24, 24, 31, 0.6);
    border-bottom: var(--border-subtle);
    backdrop-filter: blur(20px);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: var(--neutral-800);
    cursor: pointer;
    transition: all var(--transition-base);
}

.user-menu:hover {
    background: var(--neutral-700);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.content-area {
    padding: 2rem;
}

/* ============================================================================
   CARDS
   ============================================================================ */
.card {
    background: rgba(24, 24, 31, 0.6);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.card-body {
    color: var(--neutral-300);
}

/* ============================================================================
   PROJECT CARDS
   ============================================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: rgba(24, 24, 31, 0.6);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.project-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--neutral-400);
    margin-bottom: 1rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================================
   BADGES & STATUS
   ============================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-dot.success {
    background: var(--success);
}

.status-dot.error {
    background: var(--error);
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--neutral-900);
    border: var(--border-medium);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--neutral-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--neutral-800);
    color: var(--neutral-100);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--neutral-800);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--neutral-600);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

.modal-footer {
    padding: 1.5rem;
    border-top: var(--border-subtle);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================================================
   ALERTS & NOTIFICATIONS
   ============================================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: var(--border-medium);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================================================
   CODE & TERMINAL
   ============================================================================ */
.code-block {
    background: var(--neutral-900);
    border: var(--border-medium);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.terminal-output {
    background: var(--neutral-900);
    border: var(--border-medium);
    border-radius: 12px;
    padding: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--neutral-300);
}

/* ============================================================================
   DEPLOYMENT PROGRESS STEPS
   ============================================================================ */
.deployment-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-800);
    border: var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all var(--transition-base);
}

.deployment-step.success {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.deployment-step.error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.deployment-step.pending {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-700);
}

.deployment-step.success .step-icon {
    background: rgba(16, 185, 129, 0.1);
}

.deployment-step.error .step-icon {
    background: rgba(239, 68, 68, 0.1);
}

.step-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-600);
    border-top-color: var(--primary-azure);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--neutral-100);
    margin-bottom: 0.25rem;
}

.step-status {
    font-size: 0.8125rem;
    color: var(--neutral-400);
}

.step-output {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--neutral-900);
    border: var(--border-subtle);
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--neutral-300);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.hidden {
    display: none !important;
}

/* Smooth transitions for expanding sections */
#webappFields,
#sslFields {
    transition: all 0.3s ease-in-out;
}

#webappFields:not(.hidden),
#sslFields:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.w-full {
    width: 100%;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        padding: 0 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}

/* ============================================================================
   SCROLLBAR STYLING
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-900);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-600);
}

/* ============================================================================
   DETAIL TABS & FILES SCROLLING
   ============================================================================ */
.detail-tab-content {
    display: none;
}

.detail-tab-content.active {
    display: block !important;
}

/* Files container scrollbar */
#filesContainer::-webkit-scrollbar {
    width: 8px;
}

#filesContainer::-webkit-scrollbar-track {
    background: var(--neutral-900);
    border-radius: 4px;
}

#filesContainer::-webkit-scrollbar-thumb {
    background: var(--neutral-700);
    border-radius: 4px;
}

#filesContainer::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-600);
}

/* Tab buttons */
.detail-tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--neutral-400);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.detail-tab-btn:hover {
    color: var(--neutral-200);
    background: rgba(255, 255, 255, 0.05);
}

.detail-tab-btn.active {
    color: var(--primary-azure);
    border-bottom-color: var(--primary-azure);
}

/* Confirmation Modal Specific Styling */
#confirmModal.modal-overlay {
    z-index: 2000; /* Higher than other modals */
}

#confirmModal .modal {
    animation: modalSlideIn 0.3s ease-out;
}

#confirmModal .modal-body {
    padding: 1.5rem 2rem !important;
}

#confirmModal .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

#confirmModal .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#confirmModal .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}