/* GoldenPass Productores - Dark Theme */

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #18181B;
    color: #FAFAFA;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════
   LOGIN PAGE — Glassmorphism Style
   ═══════════════════════════════════════════════ */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    background: url('../images/bg-login.jpg') center/cover no-repeat;
    filter: brightness(0.25);
    z-index: 0;
}

.login-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 48px 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.login-logo-wrapper {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

.login-field {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 1;
}

.login-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-input:focus {
    border-color: #F59E0B;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Fix autofill/autocomplete background */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1033 inset !important;
    box-shadow: 0 0 0 1000px #1a1033 inset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.38);
    letter-spacing: 0.3px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.login-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    margin-top: 28px;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */

.login-layout {
    min-height: 100vh;
    background-color: #18181B;
}

/* ═══════════════════════════════════════════════
   MUDBLAZOR OVERRIDES — Dark Theme
   ═══════════════════════════════════════════════ */

.mud-table {
    background-color: #27272A !important;
}

.mud-table-head .mud-table-cell {
    background-color: #1F1F23 !important;
    color: #A1A1AA !important;
    font-weight: 600;
}

.mud-table-body .mud-table-cell {
    color: #FAFAFA !important;
    border-bottom-color: #3F3F46 !important;
}

.mud-table-row:hover {
    background-color: rgba(249, 115, 22, 0.08) !important;
}

/* DataGrid filter row */
.mud-input-control .mud-input-label {
    color: #A1A1AA !important;
}

/* ═══════════════════════════════════════════════
   ACTION BUTTONS IN GRIDS
   ═══════════════════════════════════════════════ */

.grid-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}

.grid-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.grid-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.grid-action-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.grid-action-btn.btn-ventas {
    background: rgba(249, 115, 22, 0.15);
    color: #F97316;
}
.grid-action-btn.btn-ventas:hover {
    background: rgba(249, 115, 22, 0.3);
}

.grid-action-btn.btn-general {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}
.grid-action-btn.btn-general:hover {
    background: rgba(59, 130, 246, 0.3);
}

.grid-action-btn.btn-cupones {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}
.grid-action-btn.btn-cupones:hover {
    background: rgba(16, 185, 129, 0.3);
}

.grid-action-btn.btn-clientes {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
}
.grid-action-btn.btn-clientes:hover {
    background: rgba(168, 85, 247, 0.3);
}

/* Tooltip for grid action buttons */
.grid-action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #27272A;
    color: #FAFAFA;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid #3F3F46;
    z-index: 100;
    pointer-events: none;
}

.grid-action-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #3F3F46;
    z-index: 100;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #18181B;
}

::-webkit-scrollbar-thumb {
    background: #3F3F46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525B;
}

/* ═══════════════════════════════════════════════
   CHARTS
   ═══════════════════════════════════════════════ */

.mud-chart {
    color: #FAFAFA;
}

.mud-chart-legend-item {
    color: #A1A1AA !important;
}

/* ═══════════════════════════════════════════════
   ALERTS & ERRORS
   ═══════════════════════════════════════════════ */

.mud-alert {
    border-radius: 8px;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error inesperado.";
}
