/* ==========================================================================
   JELODA - Electronic Payroll Premium Stylesheet (p/nomina-electronica/dom/index.css)
   ========================================================================== */

.product-page-wrapper {
    padding-top: 160px !important;
    padding-bottom: 120px !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}


.relative-z {
    position: relative;
    z-index: 2;
}

/* Background waves & decorative shapes */
.product-bg-wave {
    position: absolute;
    top: 5%;
    right: -250px;
    width: 800px;
    height: auto;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    animation: floatSlow 15s infinite ease-in-out;
}

.product-bg-wave img {
    width: 100%;
    height: auto;
}

.deco-shapes .shape {
    position: absolute;
    opacity: 0.5;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.deco-shapes .shape:hover {
    opacity: 0.8;
    transform: scale(1.15) rotate(5deg);
}

.shape-hexa {
    top: 15%;
    left: 6%;
    width: 110px;
    animation: floatSlow 9s infinite ease-in-out;
}

.shape-diamond {
    bottom: 25%;
    right: 5%;
    width: 130px;
    animation: floatSlow 8s infinite ease-in-out 1.5s;
}

/* Hero Badge & Title */
.badge-premium {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.08) 0%, rgba(101, 31, 255, 0.03) 100%) !important;
    border: 1px solid rgba(101, 31, 255, 0.25) !important;
    color: #651fff !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 4px 15px rgba(101, 31, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.badge-premium i {
    font-size: 14px !important;
    margin-right: 5px;
    line-height: 1 !important;
}

.badge-premium:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.12) 0%, rgba(101, 31, 255, 0.06) 100%) !important;
    border-color: rgba(101, 31, 255, 0.4) !important;
    box-shadow: 0 6px 20px rgba(101, 31, 255, 0.1) !important;
}

.theme--dark .badge-premium {
    background: linear-gradient(135deg, rgba(179, 136, 255, 0.12) 0%, rgba(179, 136, 255, 0.04) 100%) !important;
    border: 1px solid rgba(179, 136, 255, 0.3) !important;
    color: #b388ff !important;
    box-shadow: 0 4px 15px rgba(179, 136, 255, 0.05) !important;
}

.theme--dark .badge-premium:hover {
    background: linear-gradient(135deg, rgba(179, 136, 255, 0.18) 0%, rgba(179, 136, 255, 0.06) 100%) !important;
    border-color: rgba(179, 136, 255, 0.45) !important;
    box-shadow: 0 6px 20px rgba(179, 136, 255, 0.15) !important;
}

.product-hero-title {
    font-weight: 900 !important;
    font-size: 3.5rem !important;
    line-height: 1.15 !important;
    letter-spacing: -1px;
}

.theme--light .product-hero-title {
    color: #111111 !important;
}

.theme--dark .product-hero-title {
    color: #ffffff !important;
}

/* Premium Primary Button */
.btn-premium {
    background-color: #651fff !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0 2.2rem !important;
    height: 52px !important;
    line-height: 52px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 1rem !important;
    box-shadow: 0 6px 20px rgba(101, 31, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(101, 31, 255, 0.6) !important;
    background-color: #7c4dff !important;
}

/* Highlights Card Section */
.highlights-card {
    border-radius: 24px !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.theme--dark .highlights-card {
    background: rgba(18, 18, 20, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.theme--light .highlights-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 15px 35px rgba(101, 31, 255, 0.04) !important;
}

.highlight-title {
    font-weight: 800 !important;
    font-size: 2.2rem !important;
}

.theme--dark .highlight-title { color: #ffffff !important; }
.theme--light .highlight-title { color: #111111 !important; }

.highlight-desc {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

.theme--dark .highlight-desc { color: rgba(255, 255, 255, 0.65) !important; }
.theme--light .highlight-desc { color: rgba(0, 0, 0, 0.6) !important; }

.highlight-features-list {
    padding: 0;
    list-style: none;
}

.highlight-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
}

.theme--dark .highlight-feature-item { color: rgba(255, 255, 255, 0.85); }
.theme--light .highlight-feature-item { color: rgba(0, 0, 0, 0.75); }

.highlight-icon {
    color: #651fff;
    font-size: 24px;
    flex-shrink: 0;
}

.product-feature-img {
    max-width: 100%;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.product-feature-img:hover {
    transform: scale(1.02);
}


/* ==========================================================================
   NEW INTERACTIVE PAYROLL MODULES STYLES (Tabs & Cards)
   ========================================================================== */

.payroll-modules-section {
    position: relative;
    z-index: 2;
}

.section-title-premium {
    font-weight: 900 !important;
    font-size: 2.5rem !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle-premium {
    font-size: 1.1rem;
    max-width: 650px;
    line-height: 1.6;
}

.theme--dark .section-subtitle-premium { color: rgba(255, 255, 255, 0.6) !important; }
.theme--light .section-subtitle-premium { color: rgba(0, 0, 0, 0.65) !important; }

/* Tabs Navigation Container */
.payroll-tabs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(101, 31, 255, 0.03);
    border: 1px solid rgba(101, 31, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.theme--dark .payroll-tabs-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Tab Button */
.payroll-tab-btn {
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 20px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
}

.payroll-tab-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.theme--light .payroll-tab-btn {
    color: rgba(0, 0, 0, 0.7);
}

.theme--dark .payroll-tab-btn {
    color: rgba(255, 255, 255, 0.7);
}

.payroll-tab-btn:hover {
    color: #651fff;
}

.theme--dark .payroll-tab-btn:hover {
    color: #b388ff;
}

.payroll-tab-btn:hover i {
    transform: translateY(-2px);
}

/* Active State for Tab Buttons */
.payroll-tab-btn.active {
    background: #651fff;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(101, 31, 255, 0.35);
}

.theme--dark .payroll-tab-btn.active {
    background: #b388ff;
    color: #121214 !important;
    box-shadow: 0 6px 20px rgba(179, 136, 255, 0.35);
}

/* Tab Panels Content Container */
.payroll-panels-container {
    position: relative;
    min-height: 380px;
}

/* Payroll Tab Panel */
.payroll-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.payroll-tab-panel.active {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

/* Tab Panel Cards */
.payroll-feature-card {
    padding: 2.2rem 1.8rem;
    border-radius: 20px;
    height: 100%;
    min-height: 280px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.theme--light .payroll-feature-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(101, 31, 255, 0.08);
    box-shadow: 0 8px 30px rgba(101, 31, 255, 0.03);
}

.theme--dark .payroll-feature-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Icon Box inside Card */
.payroll-card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.theme--light .payroll-card-icon-box {
    background: rgba(101, 31, 255, 0.08);
    color: #651fff;
}

.theme--dark .payroll-card-icon-box {
    background: rgba(179, 136, 255, 0.1);
    color: #b388ff;
}

.payroll-card-icon-box i {
    font-size: 24px;
}

/* Titles and Descs inside card */
.payroll-feature-card h5 {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.theme--light .payroll-feature-card h5 { color: #111111; }
.theme--dark .payroll-feature-card h5 { color: #ffffff; }

.payroll-feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.theme--light .payroll-feature-card p { color: rgba(0, 0, 0, 0.6); }
.theme--dark .payroll-feature-card p { color: rgba(255, 255, 255, 0.6); }

/* Card Hover effect */
.payroll-feature-card:hover {
    transform: translateY(-8px);
}

.theme--light .payroll-feature-card:hover {
    border-color: rgba(101, 31, 255, 0.3);
    box-shadow: 0 15px 35px rgba(101, 31, 255, 0.12);
}

.theme--dark .payroll-feature-card:hover {
    border-color: rgba(179, 136, 255, 0.25);
    box-shadow: 0 15px 35px rgba(179, 136, 255, 0.12);
}

.payroll-feature-card:hover .payroll-card-icon-box {
    transform: scale(1.1) rotate(4deg);
}

.theme--light .payroll-feature-card:hover .payroll-card-icon-box {
    background: #651fff;
    color: #ffffff;
}

.theme--dark .payroll-feature-card:hover .payroll-card-icon-box {
    background: #b388ff;
    color: #121214;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(4deg);
    }
}

/* Responsive adjustment for Mobile Tabs */
@media (max-width: 767px) {
    .payroll-tabs-container {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 10px;
    }
    .payroll-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.88rem;
    }
    .section-title-premium {
        font-size: 1.85rem !important;
    }
    .payroll-feature-card {
        min-height: auto;
    }
}
