/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f7f9fc; /* Subtle dreamy background */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styling */
.site-header {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

/* Navigation bar styling */
.main-nav {
    margin-left: auto; /* Push links to the far right */
}

/* Styling for navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Ensure links are horizontal */
    gap: 20px; /* Add space between links */
}

.main-nav ul li {
    display: inline; /* Make list items inline */
}

.main-nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: #555;
    color: #f9f9f9;
}

.main-nav ul li a:hover {
    background-color: #555;
    color: #f9f9f9;
}

.main-nav ul li a.active {
    background-color: #0073e6; /* Highlight active link */
    color: white;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header .logo {
        margin-bottom: 10px;
    }
}

.main-nav ul li a.btn-login,
.main-nav ul li a.btn-signup {
    background-color: #007BFF;
    color: white;
}

.main-nav ul li a.btn-login:hover,
.main-nav ul li a.btn-signup:hover {
    background-color: #0056b3;
}

.main-nav ul li a.btn-logout {
    background-color: red;
    color: white;
}

.main-nav ul li a.btn-logout:hover {
    background-color: darkred;
}

/* General styling for the header */
header {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between; /* Ensures space between logo and links */
    align-items: center; /* Vertically center the items */
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header .logo a {
    text-decoration: none;
    color: white;
}

/* Navigation bar styling */
header nav {
    display: flex; /* Ensures links are horizontal */
    gap: 20px; /* Adds space between links */
    align-items: center; /* Aligns links vertically */
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px; /* Adds padding around the links */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav a:hover {
    background-color: #555; /* Darker background on hover */
    color: #f9f9f9;
}

header nav a.active {
    background-color: #0073e6; /* Highlight active link */
    color: white;
}


.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adds an overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-btn {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #4CAF50;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.cta-btn.secondary {
    background-color: #0066cc;
}

.cta-btn.secondary:hover {
    background-color: #004d99;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    position: relative;
}

.feature-card img {
    max-width: 200px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.feature-card .cta-btn {
    display: inline-block;
    margin-top: 10px;
}

/* Features Section */
.features {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f9f9f9, #eaf2f8);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #0066cc);
    z-index: 1;
}

.feature-icon {
    max-width: 180px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}


/* How It Works Section */
.how-it-works {
    background: white;
    padding: 50px 20px;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.how-it-works ol {
    margin: 0;
    padding: 0;
    list-style: decimal inside;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Buttons */
button, a.button {
    padding: 10px 20px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, a.button:hover {
    background-color: #005bb5;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input:focus, select:focus, textarea:focus {
    border-color: #0073e6;
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

/* Style for links below the login form */
.container a {
    color: #007BFF;
    text-decoration: none;
    font-size: 0.9rem;
}

.container a:hover {
    text-decoration: underline;
}

/* Print-specific styles */
@media print {
    body {
        margin: 0;
        padding: 0;
        color: black;
        background: white;
    }

    header, nav, .cta-buttons, #back-to-top {
        display: none; /* Hide header, buttons, and interactive elements */
    }

    .container {
        margin: 0 auto;
        padding: 20px;
    }

    .hero-content {
        display: none; /* Hide the hero section */
    }

    footer {
        text-align: center;
        font-size: 12px;
        color: #666;
        padding: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #ddd;
    }


}

/* Ensure the page takes up full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Make the main content grow to push footer down */
main {
    flex: 1;
}

/* Footer should always stay at the bottom */
footer {
    background-color: #333; /* Dark background */
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: auto; /* Pushes the footer to the bottom */
}

.payment-success {
    text-align: center;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.payment-success h1 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 15px;
}

.payment-success p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.payment-success .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.payment-success .btn-primary:hover {
    background-color: #0056b3;
}

/* Dream Details Page */
.dream-details {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
}

.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.dream-meta p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

.dream-text,
.dream-scores,
.dream-metrics,
.dream-recommendations {
    margin-bottom: 20px;
}

.dream-text p {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.dream-scores ul,
.dream-metrics ul {
    list-style: none;
    padding: 0;
}

.dream-scores li,
.dream-metrics li {
    background: #f7f9fc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.dream-recommendations p {
    font-size: 16px;
    color: #444;
    padding: 10px;
    border-left: 4px solid #007bff;
    background: #f1f5ff;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-top: 20px;
}

.action-buttons button,
.action-buttons a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    margin: 5px;
}

.btn-print {
    background: #28a745;
    color: white;
}

.btn-print:hover {
    background: #218838;
}

.btn-email {
    background: #007bff;
    color: white;
}

.btn-email:hover {
    background: #0056b3;
}

.btn-download {
    background: #ff9800;
    color: white;
}

.btn-download:hover {
    background: #e68900;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dream-details {
        padding: 20px;
        max-width: 100%;
    }

    .action-buttons button,
    .action-buttons a {
        width: 100%;
        margin-top: 10px;
    }
}

/* Dream Details Page */
.dream-details {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
}

.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.dream-meta p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

.dream-text, .dream-interpretation,
.dream-scores, .dream-metrics, .dream-recommendations, .dream-image {
    margin-bottom: 20px;
}

.dream-text p, .dream-interpretation p {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.dream-scores ul, .dream-metrics ul {
    list-style: none;
    padding: 0;
}

.dream-scores li, .dream-metrics li {
    background: #f7f9fc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.dream-recommendations p {
    font-size: 16px;
    color: #444;
    padding: 10px;
    border-left: 4px solid #007bff;
    background: #f1f5ff;
}

.dream-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-top: 20px;
}

.action-buttons button, .action-buttons a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    margin: 5px;
}

.btn-print {
    background: #28a745;
    color: white;
}

.btn-print:hover {
    background: #218838;
}

.btn-email {
    background: #007bff;
    color: white;
}

.btn-email:hover {
    background: #0056b3;
}

.btn-download {
    background: #ff9800;
    color: white;
}

.btn-download:hover {
    background: #e68900;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dream-details {
        padding: 20px;
        max-width: 100%;
    }

    .action-buttons button, .action-buttons a {
        width: 100%;
        margin-top: 10px;
    }
}

/* Dream Interpretation Styling */
.dream-interpretation h3 {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-bottom: 20px;
}

/* General styling for each interpretation section */
.interpretation-section {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

/* Unique background colors for different sections */
.symbolic-section {
    background-color: #0073e6; /* Deep Blue */
}

.psychological-section {
    background-color: #28a745; /* Green */
}

.practical-section {
    background-color: #e67e22; /* Orange */
}

/* Styling for section headers inside each interpretation */
.interpretation-section h4 {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: white;
    text-align: center;
}

/* Text inside interpretation sections */
.interpretation-section p {
    color: white;
    font-size: 16px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2); /* Subtle overlay for better readability */
    border-radius: 5px;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .interpretation-section {
        padding: 10px;
    }
}

/* General Styling for Analysis Sections */
.analysis-section {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    color: white !important; /* Ensures text is visible */
}

/* Background Colors for Each Section */
.scores-section {
    background-color: #0073e6 !important; /* Deep Blue */
}

.metrics-section {
    background-color: #28a745 !important; /* Deep Green */
}

.recommendations-section {
    background-color: #e67e22 !important; /* Deep Orange */
}

/* Ensure Text Visibility */
.analysis-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-section li {
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2); /* Slightly transparent white */
    color: white !important;
    margin-bottom: 5px;
}

/* Ensure Contrast for Text */
.analysis-section strong {
    color: #ffffff !important;
}

/* Responsive Design Fix */
@media (max-width: 768px) {
    .analysis-section {
        padding: 15px;
    }
}

/* Container Styling */
.dream-explanation {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* Title Centered */
.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

/* Space Between Sections */
.explanation-row {
    margin-bottom: 60px;
}

/* Images Styling */
.explanation-row img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Text Alignment */
.explanation-text {
    padding: 20px;
    text-align: justify;
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .explanation-row {
        flex-direction: column !important;
        text-align: center;
    }

    .explanation-text {
        text-align: center;
        margin-top: 15px;
    }

    .explanation-row img {
        margin-top: 15px;
    }
}

.return-dashboard {
    text-align: center;
    margin: 20px 0; /* Adds space above and below the button */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}


/* ✅ Free Tokens Banner Styling */
.free-tokens {
    background-color: #ff9800; /* Bright eye-catching orange */
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    position: relative;
    top: 0;
    z-index: 1000;
}

.free-tokens a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.free-tokens a:hover {
    text-decoration: none;
    color: #ffe0b2; /* Lighter orange on hover */
}

/* ✅ Base Themed Section Styling */
.themed-section {
    padding: 50px;
    border-radius: 10px;
    color: white;
    margin-bottom: 30px;
}

/* ✅ Blue Section - How It Works */
.section-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* ✅ Purple Section - Features */
.section-purple {
    background: linear-gradient(135deg, #6a1b9a, #4a0072);
}

/* ✅ Green Section - Unique Benefits */
.section-green {
    background: linear-gradient(135deg, #28a745, #155d27);
}

/* ✅ Orange Section - Why Choose Us */
.section-orange {
    background: linear-gradient(135deg, #ff9800, #c07000);
}

/* ✅ Dark Section - Our Vision */
.section-dark {
    background: linear-gradient(135deg, #343a40, #1d2124);
}

/* ✅ Responsive Improvements */
@media (max-width: 768px) {
    .themed-section {
        padding: 30px;
    }
}
