/* Estilo global Grafcolor: temas por usuario (fondo + tarjetas) */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&display=swap");

:root,
body[data-theme="gris"] {
    --gc-bg: #7f8794;
    --gc-bg-image:
        radial-gradient(ellipse 120% 80% at 10% -10%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(15, 23, 42, 0.16), transparent 50%),
        linear-gradient(165deg, #8d95a2 0%, #747c8a 55%, #686f7c 100%);
    --gc-card: #f8fafc;
    --gc-card-border: #e2e8f0;
}

body[data-theme="claro"] {
    --gc-bg: #c5cad3;
    --gc-bg-image:
        radial-gradient(ellipse 120% 80% at 10% -10%, rgba(255, 255, 255, 0.45), transparent 55%),
        linear-gradient(165deg, #d5dae2 0%, #b8bec8 100%);
    --gc-card: #ffffff;
    --gc-card-border: #e5e7eb;
}

body[data-theme="azul"] {
    --gc-bg: #6b7f96;
    --gc-bg-image:
        radial-gradient(ellipse 120% 80% at 10% -10%, rgba(191, 219, 254, 0.28), transparent 55%),
        linear-gradient(165deg, #7d91a8 0%, #5c7088 55%, #4f637a 100%);
    --gc-card: #f0f6fb;
    --gc-card-border: #cfe0ee;
}

body[data-theme="oscuro"] {
    --gc-bg: #3f4652;
    --gc-bg-image:
        radial-gradient(ellipse 120% 80% at 10% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
        linear-gradient(165deg, #4a5160 0%, #353b46 55%, #2c313a 100%);
    --gc-card: #e8ebf0;
    --gc-card-border: #cfd5de;
}

body {
    background-color: var(--gc-bg) !important;
    background-image: var(--gc-bg-image) !important;
    background-attachment: fixed !important;
}

.brand,
.logo {
    font-family: "Outfit", Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card,
.module-card,
.login-card,
.panel {
    background: var(--gc-card) !important;
    border-color: var(--gc-card-border) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.login-card {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}

.module-icon,
.card-icon,
.hub-icon,
.icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(15, 23, 42, 0.06);
    color: #1f2937;
    font-size: inherit;
}

.module-icon svg,
.card-icon svg,
.hub-icon svg,
.icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-picker {
    margin: 0 0 28px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--gc-card);
    border: 1px solid var(--gc-card-border);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.theme-picker-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px;
}

.theme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-swatch {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 8px 12px 8px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.theme-swatch.active {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.theme-swatch .dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.theme-swatch[data-theme-key="gris"] .dot {
    background: linear-gradient(135deg, #8d95a2, #686f7c);
}

.theme-swatch[data-theme-key="claro"] .dot {
    background: linear-gradient(135deg, #d5dae2, #b8bec8);
}

.theme-swatch[data-theme-key="azul"] .dot {
    background: linear-gradient(135deg, #7d91a8, #4f637a);
}

.theme-swatch[data-theme-key="oscuro"] .dot {
    background: linear-gradient(135deg, #4a5160, #2c313a);
}
