:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --pm-border: #e5e7eb;
    --pm-border-strong: #d1d5db;
    --pm-surface: #ffffff;
    --pm-surface-soft: #f8fafc;
    --pm-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --pm-shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.pm-metronic-app {
    background: #f5f8fa;
}

.pm-metronic-app .kt-header {
    backdrop-filter: saturate(150%) blur(6px);
    background: color-mix(in srgb, var(--pm-surface) 92%, transparent);
}

.pm-metronic-app .kt-sidebar {
    box-shadow: var(--pm-shadow-soft);
}

.pm-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(120deg, rgba(2, 132, 199, 0.06) 0%, rgba(249, 250, 251, 0.95) 45%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid var(--pm-border);
    border-radius: 0.75rem;
    padding: 0.95rem 1rem;
}

.pm-page-title {
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--mono);
}

.pm-page-description {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.1rem;
    color: var(--secondary-foreground);
}

.pm-page-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.kt-card,
.pm-surface-card {
    border: 1px solid var(--pm-border);
    border-radius: 0.75rem;
    background: var(--pm-surface);
    box-shadow: var(--pm-shadow-soft);
}

.pm-table-card {
    border-color: #e4e6ef;
    box-shadow: 0 0 20px rgba(76, 87, 125, 0.04);
}

.pm-table-card > .kt-card-header {
    background: #ffffff;
    border-bottom: 0;
}

.pm-table-card > .kt-card-footer {
    border-top: 1px solid #f1f1f2;
    background: #ffffff;
}

.pm-surface-card > .kt-card-header {
    border-bottom: 1px solid var(--pm-border);
    background: linear-gradient(115deg, rgba(2, 132, 199, 0.05) 0%, rgba(249, 250, 251, 0.9) 45%, rgba(217, 119, 6, 0.05) 100%);
}

.kt-card .kt-card-title {
    color: var(--mono);
}

.kt-card .kt-card-content {
    color: var(--secondary-foreground);
}

.kt-input,
.kt-select,
.kt-textarea {
    border-radius: 0.5rem;
    border-color: var(--pm-border-strong);
    background-color: var(--pm-surface);
}

.kt-input:focus,
.kt-select:focus,
.kt-textarea:focus {
    border-color: color-mix(in srgb, var(--primary) 55%, #ffffff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.kt-alert {
    border-radius: 0.65rem;
    border-width: 1px;
}

.table-panel-header {
    background: linear-gradient(115deg, rgba(2, 132, 199, 0.05) 0%, rgba(249, 250, 251, 0.9) 45%, rgba(217, 119, 6, 0.05) 100%);
    border-bottom: 1px solid var(--pm-border);
}

.pm-auth-shell {
    display: grid;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 1024px) {
    .pm-auth-shell {
        grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
    }
}

.pm-auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pm-auth-card {
    width: 100%;
    max-width: 420px;
}

.pm-auth-right {
    position: relative;
    overflow: hidden;
    background-image: url('/assets/media/images/2600x1600/fondo_playmatic.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.pm-auth-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.34) 0%, rgba(15, 23, 42, 0.12) 45%, rgba(30, 41, 59, 0.34) 100%);
}

.pm-auth-right-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 2rem;
    color: #f8fafc;
}

.pm-auth-right-content h2 {
    font-size: 1.375rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.pm-auth-right-content p {
    margin-top: 0.45rem;
    max-width: 32rem;
    font-size: 0.9rem;
    line-height: 1.35rem;
    color: rgba(248, 250, 252, 0.86);
}

.pm-auth-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pm-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pm-auth-link {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

.pm-auth-link:hover {
    text-decoration: underline;
}

@media (max-width: 1023.98px) {
    .pm-auth-right {
        display: none;
    }

    .pm-page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
img.app-sidebar-logo-custom {
    width: 100% !important;
    height: auto !important;
    max-height: clamp(99px, 12vw, 154px);
    object-fit: contain;
    display: block;
}

.app-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

#kt_app_sidebar_logo {
    padding-inline: 0;
    width: 100%;
    max-width: var(--sidebar-width, 280px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

#kt_app_sidebar_logo > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(260px, 95%);
    max-width: 100%;
    margin: 0;
    padding-inline: clamp(0.5rem, 2.5vw, 1rem);
    margin-top: 0;
    justify-content: flex-start;
    transform: translateX(-10%);
}

.app-sidebar .menu .menu-link.active {
    background-color: var(--bs-primary-light);
    color: var(--bs-primary);
}

.app-sidebar .menu .menu-link.active .menu-title,
.app-sidebar .menu .menu-link.active .menu-icon i {
    color: var(--bs-primary);
}

.pm-auth-hero {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 320px;
}

.pm-auth-overlay {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.35) 100%);
}


/* Compatibility for legacy internal components still using kt- prefixed tags */
.kt-input {
    display: block;
    width: 100%;
    padding: 0.775rem 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--bs-gray-700);
    background-color: var(--bs-gray-100);
    background-clip: padding-box;
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.475rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.kt-input:focus,
.kt-input input:focus,
.kt-input select:focus,
.kt-input textarea:focus {
    color: var(--bs-gray-700);
    background-color: var(--bs-body-bg);
    border-color: var(--pm-border-strong);
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.kt-input input,
.kt-input select,
.kt-input textarea {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
}

.kt-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.kt-alert {
    border-radius: 0.475rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.kt-alert-success {
    border: 1px solid var(--bs-success);
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
}

.kt-alert-destructive {
    border: 1px solid var(--bs-danger);
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
}

.kt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.475rem;
    padding: calc(0.775rem + 1px) calc(1.5rem + 1px);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
}

.kt-btn-primary {
    color: var(--bs-primary-inverse);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.kt-btn-light {
    color: var(--bs-gray-600);
    background-color: var(--bs-gray-100);
    border-color: var(--bs-gray-100);
}

.kt-btn-outline {
    color: var(--bs-gray-600);
    background-color: transparent;
    border-color: var(--pm-border-soft);
}

.kt-btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

.kt-btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.kt-checkbox {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    border: 1px solid var(--pm-border-strong);
    border-radius: 0.45rem;
}

.kt-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.425rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.kt-badge-light {
    color: var(--bs-gray-600);
    background-color: var(--bs-gray-100);
}

.kt-badge-light-primary {
    color: var(--bs-primary);
    background-color: var(--bs-primary-light);
}
