/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font definitions for English and Bengali */
@font-face {
    font-family: 'Hind Siliguri';
    src: url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');
    font-display: swap;
}

body {
    font-family: 'Roboto', 'Hind Siliguri', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Bengali specific styles */
[lang="be"] {
    font-family: 'Hind Siliguri', 'Roboto', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: #860670ff;
    color: white;
    border-radius: 8px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

/* Form Styles */
.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #860670ff;
    color: white;
}

.btn-primary:hover {
    background-color: #6B0558;
}

.btn-secondary {
    background-color: #e6e6e6;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d9d9d9;
}

/* Sample Report Styles */
.sample-report {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
    clear: both;
    width: 100%;
}

.sample-report h2 {
    margin-bottom: 20px;
    color: #860670ff;
}

.sample-chart {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 4px;
    display: inline-block;
}

/* Report Page Styles */
.report-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.report-header {
    margin-bottom: 30px;
    text-align: center;
}

.user-details {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.chart-container {
    margin: 30px 0;
    text-align: center;
}

.chart-svg {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.planets-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.planets-table th, .planets-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.planets-table th {
    background-color: #f2f2f2;
    font-weight: 500;
}

.planets-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.lucky-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.lucky-item {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.lucky-item h3 {
    color: #860670ff;
    margin-bottom: 10px;
}

/* Dasha section */
.dashas-section {
    margin: 30px 0;
}

.dasha-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.dasha-item {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
}

/* Panchang section */
.panchang-section {
    margin: 30px 0;
}

.panchang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.panchang-item {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
}

/* Download section */
.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.download-btn {
    display: block;
    width: 220px;
    padding: 12px 20px;
    background-color: #860670ff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #6B0558;
}

.btn {
    padding: 12px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6e6e6;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    color: #666;
}

footer a {
    color: #860670ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (min-width: 768px) {
    main {
        display: block;
    }

    .dashboard-content {
        display: block;
    }
}

@media (max-width: 767px) {
    .form-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary, .download-btn, .btn {
        width: 100%;
    }

    .planets-table {
        font-size: 14px;
    }

    .planets-table th, .planets-table td {
        padding: 8px;
    }

    .lucky-items, .dasha-info, .panchang-grid {
        grid-template-columns: 1fr;
    }

    .sample-report {
        margin-top: 30px;
    }
}

/* Dashboard Cards Styling */
.dashboard-cards {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto 40px;
    gap: 25px;
}

@media (min-width: 768px) {
    .dashboard-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    overflow: hidden;
    border-top: 4px solid #860670ff;
    height: fit-content;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #860670ff;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: #860670ff;
    border-radius: 4px;
}

.card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.previous-reports {
    list-style: none;
    padding: 0;
}

.report-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9fb;
    transition: transform 0.2s ease;
}

.report-item:hover {
    transform: scale(1.02);
    background-color: #f5f2ff;
}

.report-item h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-item p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.report-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: #6e48aa;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 100px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-small:hover {
    background-color: #5a3d8a;
    transform: translateY(-2px);
}

.btn-small.download {
    background-color: #27ae60;
}

.btn-small.download:hover {
    background-color: #219653;
}

.card-cta {
    margin-top: 20px;
    text-align: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a3d8a, #8a45a3);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(110, 72, 170, 0.4);
}

.btn-secondary {
    background-color: white;
    color: #6e48aa;
    border: 2px solid #6e48aa;
}

.btn-secondary:hover {
    background-color: #f9f5ff;
    color: #5a3d8a;
    transform: translateY(-3px);
}

.toggle-form {
    display: none;
    margin-top: 25px;
    animation: slideDown 0.4s ease;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show-form {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6e48aa;
    box-shadow: 0 0 0 3px rgba(110, 72, 170, 0.1);
}

.form-note {
    background-color: #f9f5ff;
    border-left: 4px solid #6e48aa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .dashboard-cards {
        padding: 0 10px;
    }

    .card {
        padding: 20px;
        border-radius: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .report-item {
        padding: 12px;
    }

    .btn-small {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card h2::before {
        height: 20px;
    }

    /* Increase touch targets for mobile */
    .btn-small,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
    }

    /* Better spacing on small screens */
    .form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }

    .report-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-small {
        width: 100%;
    }

    .card h2 {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
    }
}

/* Additional hover effects */
input:hover, select:hover {
    border-color: #9d50bb;
}

/* Active state for mobile touchscreens */
.btn-active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Modern focus states */
input:focus, select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 72, 170, 0.2);
}

/* Form Row Styling */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ccc;
}

.icon {
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
}

.card-icon {
    font-size: 1.2em;
    margin-right: 10px;
    display: inline-block;
}

.no-reports {
    text-align: center;
    padding: 30px 0;
    color: #888;
}

/* Fix for emoji sizing */
.icon, .card-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row .form-group {
        margin-bottom: 15px;
    }

    .dashboard-cards {
        max-width: 95%;
    }
}

/* Form Validation */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Highlight the card with the form when visible */
.card:has(.show-form) {
    border-top-color: #9d50bb;
    box-shadow: 0 10px 30px rgba(110, 72, 170, 0.15);
}

/* Button loading state */
.btn-loading {
    opacity: 0.8;
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    position: absolute;
    right: 0.5em;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Add hint styles */
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification-info {
    background-color: #cce5ff;
    color: #004085;
    border-left: 4px solid #0d6efd;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    margin-right: 10px;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Styling for mobile devices */
@media (max-width: 576px) {
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .card {
        padding: 15px;
    }

    .card h2 {
        font-size: 1.2rem;
        padding-bottom: 12px;
    }

    .form-note {
        padding: 10px;
        font-size: 0.8rem;
    }

    /* Fix for very small mobile devices */
    .empty-icon {
        font-size: 36px;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Improve form inputs on small screens */
    .form-group label {
        font-size: 0.9rem;
    }

    .form-hint {
        font-size: 0.75rem;
    }

    /* Use full width for all buttons on small devices */
    .btn-small {
        width: 100%;
        justify-content: center;
    }

    /* Ensure the dashboard cards have proper margin on small screens */
    .dashboard-cards {
        margin: 0 auto 30px;
    }
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #860670ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B0558;
}

/* Custom property for iOS viewport height fix */
:root {
    --vh: 1vh;
}

.mobile-device .dashboard-cards {
    min-height: calc(var(--vh, 1vh) * 100 - 200px);
}

/* Dashboard Content Styling */
.dashboard-content {
    width: 100%;
    clear: both;
}
/* Navbar customization */
.bg-primary {
    
    background-color: #860670ff !important;
}
/* Alternative: You can also use a gradient */
.navbar.bg-primary {
    background: #860670ff !important;
}

/* for brand logo */
.navbar-brand {
    font-size: 2rem !important;
    /* Increase font size */
    font-weight: 700 !important;
    /* Make it bold */
    color: #eef1f4ff !important;
    /* Optional: change color */
    text-decoration: none !important;
    font-family: 'Roboto', sans-serif !important;
}

.navbar-brand:hover {
    color: #c4d8eeff !important;
    /* Darker color on hover */
    text-decoration: none !important;
}