/* BakCebine Premium Design System */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --accent: #22d3ee; /* Cyan 400 */
    --accent-hover: #0891b2;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --error: #ef4444;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

.input-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    width: 100%;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
    font-size: 16px; /* Prevents iOS auto-zoom */
}

.input-glass:focus {
    border-color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Global Loader Overlay */
#loader {
    position: fixed;
    inset: 0;
    background: #111827;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-pocket {
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile Optimization Utilities */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.hide-mobile {
    display: none !important;
}

@media (min-width: 769px) {
    .hide-mobile {
        display: flex !important;
    }
    .show-mobile {
        display: none !important;
    }
}

/* iOS Safe Area Support */
.main-content {
    padding-top: calc(30px + var(--safe-top));
    padding-bottom: calc(30px + var(--safe-bottom));
}
