:root {
    --primary-color: #2b0a3d;
    --secondary-color: #0b2046;
    --accent-color: #fca311;
    --text-color: #e0e0e0;
    --bg-color: #0d0d1b;
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Tiro Bangla', serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-color);
    background-image: radial-gradient(circle at top right, var(--primary-color), var(--bg-color)),
        radial-gradient(circle at bottom left, var(--secondary-color), var(--bg-color));
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
.bengali-text {
    font-family: var(--font-secondary);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(13, 13, 27, 0.85);
    /* Matches var(--bg-color) */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(252, 163, 17, 0.4);
}

.hidden {
    display: none !important;
}

.screen {
    animation: fadeIn 0.5s ease-in-out;
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #fca311, #ff6b6b);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
    font-family: var(--font-secondary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.5);
}

/* Form Styles */
.form-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #bbb;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
}

/* Payment styles */
#payment-screen .payment-card {
    text-align: center;
    max-width: 500px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(252, 163, 17, 0.3);
    box-shadow: 0 0 30px rgba(252, 163, 17, 0.1);
}

.price {
    font-size: 4rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

/* Report Styles */
.report-content {
    background: #fff;
    color: #222;
    padding: 2.5rem;
    border-radius: 10px;
    font-family: var(--font-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.report-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.report-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #2b0a3d;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    border-left: 5px solid #fca311;
    padding-left: 15px;
    background: #f9f9f9;
    padding-top: 5px;
    padding-bottom: 5px;
}

.birth-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.bd-item {
    padding: 5px;
    border-bottom: 1px dashed #eee;
}

.bd-item strong {
    color: #444;
}

.interpretation-box {
    background: #fff9c4;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #fbc02d;
    margin-top: 15px;
    font-style: italic;
}

.dasha-table-box table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.dasha-table-box th {
    background: #2b0a3d;
    color: #fff;
    padding: 10px;
    text-align: left;
}

.dasha-table-box td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.remedies-list {
    padding-left: 20px;
    list-style-type: disc;
}

.remedies-list li {
    margin-bottom: 10px;
}

.professional-footer {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.6;
}

/* Admin Styles */
.admin-table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-color);
    font-weight: 600;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-paid {
    background: #2e7d32;
    color: #fff;
}

.badge-pending {
    background: #f57c00;
    color: #fff;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Loading animation */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Info Sections & FAQ */
.info-sections {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(252, 163, 17, 0.3);
}

.info-card h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p,
.info-card li {
    color: #ddd;
    font-size: 1.1rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.faq-section {
    margin-top: 4rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 1.2rem;
    text-align: left;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-secondary);
}

.faq-question:after {
    content: '\002B';
    color: var(--accent-color);
    font-size: 1.5rem;
}

.faq-question.active:after {
    content: '\2212';
}

.faq-question:hover {
    background: rgba(252, 163, 17, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
    padding: 1.2rem;
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .header-logo {
        height: 35px !important;
    }

    .main-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        padding: 0.6rem 0.75rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .info-card {
        padding: 1.2rem;
    }

    /* Reduce app-container padding on mobile */
    .app-container {
        padding: 1rem 0.5rem;
    }

    /* Reduce report content side gaps and border on mobile */
    .report-content {
        padding: 1rem 0.6rem;
        border-radius: 6px;
        font-size: 0.98rem;
    }

    #report-container {
        margin: 0;
        padding: 0;
    }

    /* User Dashboard: left-align text */
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.75rem;
    }

    .admin-table td {
        text-align: left;
        padding: 6px 10px;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-left: 10px;
    }

    .admin-table td:last-child {
        border-bottom: none;
        text-align: left;
        margin-top: 8px;
    }

    /* Remove pseudo-element label since we use left align now */
    .admin-table td::before {
        display: none;
    }

    /* Reduce form-container gap on mobile */
    .form-container {
        padding: 1.5rem 1rem;
    }

    /* Modal content on mobile */
    .modal-content {
        padding: 1.5rem 1rem;
        width: 95%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid rgba(252, 163, 17, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(-20px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 10px;
    font-size: 1.1rem;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Footer Styles */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-content strong {
    color: #fff;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .main-header,
    .site-footer,
    button,
    .action-btn {
        display: none !important;
    }

    .app-container {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    #report-page {
        background: #fff !important;
    }

    #report-container,
    .report-content {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        break-inside: avoid;
    }

    .report-content div {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    table,
    tr,
    td {
        border-color: #333 !important;
    }

    svg {
        max-width: 300px !important;
    }

    .badge {
        border: 1px solid #333 !important;
        color: #000 !important;
        background: transparent !important;
    }
}