html {
    font-size: 14px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.pf-body {
    min-height: 100vh;
}

.pf-app {
    display: flex;
    min-height: 100vh;
}

.pf-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #111827 0%, #182235 100%);
    color: #fff;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.pf-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.pf-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
}

.pf-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.pf-brand-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.pf-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pf-nav-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.75rem;
    margin-bottom: 0.35rem;
}

.pf-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .pf-nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .pf-nav-link.active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
        color: #fff;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.22);
    }

    .pf-nav-link i {
        font-size: 1rem;
        min-width: 18px;
    }

.pf-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-topbar {
    height: 78px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.pf-page-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.pf-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pf-language-select {
    min-width: 130px;
    border-radius: 10px;
}

.pf-user-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.45rem 0.7rem;
}

.pf-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.pf-user-name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.1;
}

.pf-user-role {
    font-size: 0.78rem;
    color: #6b7280;
}

.pf-content {
    padding: 1.5rem;
}

.page-card {
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
}

.page-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #111827;
}

.page-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.table {
    --bs-table-bg: transparent;
}

    .table thead th {
        white-space: nowrap;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #6b7280;
        border-bottom: 1px solid #e5e7eb;
    }

    .table tbody td {
        vertical-align: middle;
        border-color: #eef2f7;
    }

.badge {
    border-radius: 999px;
    padding: 0.5em 0.8em;
    font-weight: 600;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 44px;
    border-color: #dbe2ea;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #7c3aed;
        box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.12);
    }

@media (max-width: 991.98px) {
    .pf-sidebar {
        width: 88px;
        padding: 1rem 0.75rem;
    }

    .pf-brand-title,
    .pf-brand-subtitle,
    .pf-nav-section,
    .pf-nav-link span,
    .pf-user-info {
        display: none;
    }

    .pf-sidebar-brand {
        justify-content: center;
    }

    .pf-nav-link {
        justify-content: center;
        padding: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .pf-topbar {
        padding: 0 1rem;
    }

    .pf-content {
        padding: 1rem;
    }

    .pf-user-box {
        display: none;
    }
}

.pf-user-box {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.pf-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.pf-user-name {
    font-weight: 600;
    color: #182235;
}

.pf-user-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
.spec-btn {
    transition: all 0.2s ease;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
    background-color: transparent;
}

    .btn-outline-purple:hover,
    .btn-outline-purple:focus {
        color: #fff;
        background-color: #6f42c1;
        border-color: #6f42c1;
        box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    }

    .btn-outline-purple:active,
    .btn-outline-purple.active,
    .btn-purple-active {
        color: #fff;
        background-color: #5f37a6;
        border-color: #5f37a6;
    }

.btn-outline-orange {
    color: #fd7e14;
    border-color: #fd7e14;
    background-color: transparent;
}

    .btn-outline-orange:hover,
    .btn-outline-orange:focus {
        color: #fff;
        background-color: #fd7e14;
        border-color: #fd7e14;
        box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
    }

    .btn-outline-orange:active,
    .btn-outline-orange.active,
    .btn-orange-active {
        color: #fff;
        background-color: #e56f0d;
        border-color: #e56f0d;
    }

.spec-btn:hover {
    transform: scale(1.05);
}

.specialty-detail {
    line-height: 1.35;
    word-break: break-word;
}

.specialty-max-detail {
    color: #d39e00;
}

.specialty-current-detail {
    color: #0d6efd;
}

.badge-purple {
    background-color: #6f42c1;
    color: #fff;
}

.badge-orange {
    background-color: #fd7e14;
    color: #fff;
}

.pf-debuff-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    min-height: 170px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pf-debuff-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    text-align: center;
}

.pf-debuff-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.95rem;
}

    .pf-debuff-stat:last-child {
        border-bottom: none;
    }

    .pf-debuff-stat span {
        color: #6b7280;
    }

    .pf-debuff-stat strong {
        color: #b91c1c;
        font-weight: 700;
    }

    .pf-debuff-stat strong {
        color: #dc2626; /* rojo */
    }

        .pf-debuff-stat strong.zero {
            color: #9ca3af; /* gris */
        }

.pf-specialties-box {
    border: 1px solid #dbdfea;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.pf-specialties-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2b3a;
}

.pf-specialty-card {
    border: 1px solid #dbdfea;
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    background: #fff;
}

.pf-specialty-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2b3a;
}

.pf-specialty-meta {
    margin-bottom: 0.75rem;
}

    .pf-specialty-meta.current {
        margin-top: 1rem;
    }

.pf-specialty-label {
    font-size: 0.85rem;
    color: #8094ae;
    margin-bottom: 0.15rem;
}

.pf-specialty-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f4a100;
    line-height: 1.2;
}

    .pf-specialty-value.current-value {
        color: #0d6efd;
    }

.pf-specialty-desc {
    font-size: 0.85rem;
    color: #8094ae;
    margin-top: 0.15rem;
}

.pf-specialty-levels {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pf-level-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1.5px solid #cfd4e0;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .pf-level-btn.active {
        transform: scale(1.08);
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
    }

    .pf-level-btn.level-locked {
        color: #6c757d;
        border-color: #6c757d;
        background: #fff;
    }

    .pf-level-btn.level-green {
        color: #198754;
        border-color: #198754;
    }

    .pf-level-btn.level-blue {
        color: #0d6efd;
        border-color: #0d6efd;
    }

    .pf-level-btn.level-purple {
        color: #6f42c1;
        border-color: #6f42c1;
    }

    .pf-level-btn.level-orange {
        color: #fd7e14;
        border-color: #fd7e14;
    }

    .pf-level-btn.level-gold {
        color: #f4a100;
        border-color: #f4a100;
    }

    .pf-level-btn.active.level-locked {
        background: #6c757d;
        color: #fff;
        border-color: #6c757d;
    }

    .pf-level-btn.active.level-green {
        background: #198754;
        color: #fff;
        border-color: #198754;
    }

    .pf-level-btn.active.level-blue {
        background: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

    .pf-level-btn.active.level-purple {
        background: #6f42c1;
        color: #fff;
        border-color: #6f42c1;
    }

    .pf-level-btn.active.level-orange {
        background: #fd7e14;
        color: #fff;
        border-color: #fd7e14;
    }

    .pf-level-btn.active.level-gold {
        background: #f4a100;
        color: #111827;
        border-color: #f4a100;
    }

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    width: 100%;
}

.auth-brand {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
}

    .auth-brand h1 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: .25rem;
    }

    .auth-brand p {
        margin: 0;
        color: rgba(255,255,255,.75);
    }

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .35rem;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.auth-label {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .4rem;
}

.auth-input {
    min-height: 48px;
    border-radius: 14px;
}

.auth-btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
}

.page-card {
    overflow: visible !important;
}

.table-responsive {
    overflow: visible !important;
}

.dropdown-menu {
    z-index: 1055;
}

.member-row {
    cursor: pointer;
}

    .member-row:hover {
        background-color: #f5f7fb;
    }