/**
 * MediaPanel - Base CSS & Design System
 * 100% CSS Nativo - Cero dependencias externas
 */

:root {
    /* Tema oscuro idéntico a dashboard/index.php (Zinc & Emerald Flat Design) */
    --bg-primary: #09090b;
    --bg-surface: #18181b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --bg-elevated: #232328;
    --bg-overlay: rgba(0, 0, 0, 0.85);

    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.2);

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border: #27272f;
    --border-light: #3f3f46;
    --border-accent: rgba(16, 185, 129, 0.4);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #0284c7;
    --info-bg: rgba(2, 132, 199, 0.15);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --header-height: 56px;
    --container-max: 1320px;
    --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y caja */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Estricto Flat UI: 0 border-radius en todo el portal */
    border-radius: 0 !important;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Utilidades básicas */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }
