/* =========================================
   3. REPORT TOOL SPECIFIC STYLES
   ========================================= */

.top-bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto 20px auto;
    background: #fff;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

button.action-btn {
    padding: 10px 22px;
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    font-size: 14px;
}

button.action-btn:hover {
    background: #000;
}

button.pdf-btn {
    padding: 10px 22px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

button.pdf-btn:hover {
    background: #c0392b;
}

.tab-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    display: inline-block;
}

.tab-btn:hover,
.tab-btn.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-m {
    background-color: var(--btn-maha);
}

.btn-a {
    background-color: var(--btn-antar);
}

.btn-p {
    background-color: var(--btn-prat);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-d {
    background-color: var(--btn-daily);
}

.btn-free {
    background-color: #e67e22;
    background-image: linear-gradient(45deg, #e67e22, #f1c40f);
}

.range-btn {
    background-color: var(--btn-range);
    border: none;
    color: #636e72;
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.range-btn:hover {
    background-color: #b2bec3;
    color: #2d3436;
}

/* Report Layout */
.report-layout-container {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
}

.left-panel {
    flex: 0 0 320px;
}

.labeled-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 95px 95px 95px;
    border: 2px solid #2c3e50;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

.natal-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 500;
    border-right: 1px solid #2c3e50;
    border-bottom: 1px solid #2c3e50;
    background: #fff;
    color: #2c3e50;
}

.natal-cell:nth-child(3n) {
    border-right: none;
}

.natal-cell:nth-child(n+7) {
    border-bottom: none;
}

.planet-name {
    position: absolute;
    bottom: 6px;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: #b2bec3;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--btn-book);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.book-btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
}

.right-panel {
    flex: 1;
}

.dasha-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.d-card {
    border: 2px solid #2c3e50;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    page-break-inside: avoid;
}

.d-card:hover {
    transform: translateY(-3px);
}

.d-header {
    text-align: center;
    padding: 12px;
    border-bottom: 2px solid #2c3e50;
    font-size: 14.5px;
    font-weight: 500;
    color: #2d3436;
    background: #f1f2f6;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.d-header:hover {
    background-color: #dfe6e9;
    color: #d35400;
}

.d-header::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.d-header:hover::after {
    opacity: 1;
    color: #d35400;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #eee;
}

.mini-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    height: 55px;
    font-weight: 500;
    border-right: 1px solid #2c3e50;
    border-bottom: 1px solid #2c3e50;
    color: #2c3e50;
}

.mini-cell:nth-child(3n) {
    border-right: none;
}

.mini-cell:nth-child(n+7) {
    border-bottom: none;
}

/* Number Styles */
.num-container {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    height: 100%;
}

.num-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    line-height: 1;
}

.n-blk {
    color: var(--c-base);
    font-size: 24px;
}

.n-dest {
    color: var(--c-destiny);
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
}

.n-maha,
.n-antar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 1px;
}

.n-maha {
    background-color: var(--c-maha);
}

.n-antar {
    background-color: var(--c-antar);
}

.n-prat {
    color: var(--c-prat);
    font-size: 24px;
}

.n-daily {
    color: var(--c-daily);
    font-size: 24px;
}

/* Controls & Predictions */
.card-controls {
    padding: 12px 16px 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.section-label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.life-event-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

.tab-content-container {
    background: #fff;
    flex-grow: 1;
    padding: 12px;
}

.tab-pane {
    display: none;
    font-size: 13px;
    line-height: 1.5;
    animation: fadeIn 0.2s;
}

.tab-pane.default-msg {
    color: #999;
    text-align: center;
    font-style: italic;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-heading {
    font-size: 14.5px;
    font-weight: 700;
    color: #d35400;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Result Box Colors */
.res-box {
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #ccc;
    font-weight: 500;
    margin-bottom: 10px;
}

.res-positive {
    background-color: var(--note-pos-bg);
    color: var(--note-pos-text);
    border-left-color: var(--note-pos-text);
}

.res-negative {
    background-color: var(--note-neg-bg);
    color: var(--note-neg-text);
    border-left-color: var(--note-neg-text);
}

.res-average {
    background-color: var(--note-avg-bg);
    color: var(--note-avg-text);
    border-left-color: var(--note-avg-text);
}

.res-neutral {
    background-color: var(--note-neu-bg);
    color: var(--note-neu-text);
}

.res-disclaimer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #d32f2f;
    font-weight: 500;
    text-align: center;
}

/* Blurred & Locked Content */
.blurred-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
}

.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    z-index: 10;
    border-radius: 8px;
}

.unlock-btn {
    background: linear-gradient(90deg, #d35400, #c0392b);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.unlock-btn:hover {
    transform: scale(1.05);
}

/* PDF Styles */
#pdf-hidden-container {
    position: fixed;
    top: -10000px;
    left: -10000px;
    width: 750px;
    z-index: -1;
}

.pdf-print-mode {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 0 !important;
}

.pdf-cover-page {
    height: 860px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #fff !important;
    border: 10px solid #f8f9fa !important;
    padding: 0 !important;
    position: relative !important;
    margin-top: 0px !important;
    margin-left: -5px !important;
    overflow: visible !important;
}

.pdf-cover-page::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 15px !important;
    background: linear-gradient(90deg, #1b4f72 0%, #d35400 100%) !important;
    z-index: 5 !important;
}

.pdf-cover-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 50px !important;
    font-weight: 700 !important;
    color: #1b4f72 !important;
    margin-bottom: 5px !important;
    letter-spacing: -0.5px;
}

.pdf-cover-tagline {
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #d35400 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px !important;
}

.pdf-page-break {
    page-break-after: always;
    break-after: always;
    display: block;
    min-height: 900px;
    position: relative;
}

.pdf-print-mode .dasha-container {
    display: block !important;
    width: 100% !important;
}

.pdf-print-mode .d-card {
    border: 1px solid #333 !important;
    background: #fff !important;
    width: 94% !important;
    max-width: 94% !important;
    margin: 20px auto !important;
    display: block !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: auto;
    position: relative;
}

.pdf-print-mode .tab-pane {
    display: block !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 20px !important;
    border: 1px solid transparent;
    font-size: 13px !important;
}

.pdf-print-mode .card-controls,
.pdf-print-mode .unlock-overlay,
.pdf-print-mode .book-btn,
.pdf-print-mode .tab-default,
.pdf-print-mode .tab-pane.default-msg,
.pdf-print-mode .range-btn,
.pdf-print-mode .res-disclaimer {
    display: none !important;
}

.pdf-only-header {
    display: none;
}

.pdf-print-mode .pdf-only-header {
    display: block !important;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 14px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Remedies Section */
.remedies-wrapper {
    padding: 10px 5px;
}

.remedy-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.remedy-item {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
    color: #444;
}

.remedy-item strong {
    color: #2c3e50;
    font-weight: 600;
}