/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: black;
    color: white;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

.nav-links a:hover {
    color: #a855f7;
}

.nav-buttons button {
    margin-left: 1rem;
}

/* Buttons */
button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost {
    color: white;
    text-decoration: none;
    border: 3px solid #374151;
    border-radius: 0.375rem;
    text-align: center;
    padding: 0.3rem 0.75rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
}

.btn-primary {
    background: #ef4444;
    color: white;
    text-decoration: none;
    border: 3px solid #ef4444;
    border-radius: 0.375rem;
    text-align: center;
    padding: 0.3rem 0.75rem;
}

.btn-primary:hover {
    background: #dc2626;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    color: white;
    background-color: #dc2626;
    border: none;
    border-radius: 1cm;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}


.btn-submit {
    width: 100%;
    background: #ef4444;
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}


/* Hero Section */
.hero {
    padding: 3rem 1rem;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #9ca3af;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}



/* Features Section */
.features {
    padding: 3rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #9ca3af;
}
.cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color:  #1f2937;
    border-radius: 20px;
    width: 250px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}


.cards-container {
    display: flex; /* Arrange cards horizontally */
    flex-wrap: wrap; /* Allow wrapping if needed */
    gap: 20px; /* Space between cards */
    justify-content: center; /* Center the cards */
    padding: 20px; /* Add some padding around */
}

.card:hover {
    transform: translateY(-10px);
    background-color:#4b5767 ;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.card-content {
    padding: 10px;
}

.card h3 {
    color: white;
    font-size: 20px;
    margin-top: 10px;
}

.card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-top: 5px;
}



/* About Section */
.about {
    padding: 3rem 1rem;
    background: #111827;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content {
    color: #d1d5db;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 3rem 1rem;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    max-width: 48rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: white;
}


/* Clinic Page */
.clinic {
    background: #111827;
}

.clinic h2 {
    color: #f59e0b;
}

.clinic-card {
    background-color: #2d3748;
}

/* Food Page */
.food {
    background: #1a202c;
}

.food h2 {
    color: #34d399;
}

.food-card {
    background-color: #374151;
}

/* Transport Page */
/* Expense Section Styling */
.expense-section {
    background: #111827;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

label {
    display: block;
    font-size: 1rem;
    margin-top: 0.8rem;
    color: #d1d5db;
    text-align: left;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #374151;
    background: #0f172a;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #60a5fa;
    outline: none;
}

/* Submit Button */
button {
    background: #ef4444;
    color: white;
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

button:hover {
    background: #dc2626;
}

/* Footer */
footer {
    border-top: 1px solid #374151;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}


/* Update the nav-buttons styles */
.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons .btn {
    margin-left: 1rem;
}

/* Add hover effect to all buttons */
button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Add hover effect to card links if any */
.card a:hover {
    text-decoration: underline;
}

/* Add hover effect to footer links */
.footer-column a:hover {
    color: #a855f7;
    text-decoration: underline;
}

/* Auth Pages - Signup & Login */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black;
}

.auth-box {
    background: #1f2937;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-box h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-box p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-form label {
    color: #d1d5db;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: white;
}

.auth-form input:focus {
    border-color: #a855f7;
    outline: none;
}

.auth-form .btn-submit {
    background: #ef4444;
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form .btn-submit:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.auth-links {
    margin-top: 1rem;
    color: #9ca3af;
}

.auth-links a {
    color: #a855f7;
    text-decoration: none;
}

.auth-links a:hover {
    background-color: #a855f7;
    text-decoration: none;
}



/* Style the paragraph with class "auth" */
.auth {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin: 10px 0;
}

/* Style the link inside the paragraph */
.auth a {
    color: #4498f1; /* Blue color for the link */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
}

/* Change link color on hover */
.auth a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: none; /* Underline on hover */
}



/* Media Queries */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-buttons .btn-ghost {
        display: inline-block;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3.75rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .cards-container {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center;
    }

}


.dashboard-summary {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.card {
    background: #1f2937;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
}
.recent-transactions table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.recent-transactions th, .recent-transactions td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.chart-container {
    width: 80%;
    margin: auto;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.popup-box {
    background: #fff;
    padding: 20px;
    width: 350px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.popup-box h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.popup-box p {
    color: #555;
    font-size: 16px;
    margin: 10px 0;
}

.popup-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.popup-btn:hover {
    background: #218838;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Table Styles */
.table-container {
    width: 70%; /* Reduce table width for a smaller size */
    max-width: 800px; /* Limit maximum width for better visibility */
    margin: 0 auto;
    position: relative;
}

.table-date {
    position: absolute;
    top: -30px;
    right: 10px;
    font-weight: bold;
    font-size: 1rem;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #1f2937;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}
table th,
table td {
    padding: 0.5rem 0.75rem; /* Slightly reduce padding */
    text-align: left;
    font-size: 0.85rem; /* Reduce font size slightly */
    color: white;
}

table th {
    background-color: #374151;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem; /* Smaller font for headers */
    letter-spacing: 0.05em;
}


table tr {
    border-bottom: 1px solid #4b5563; /* Subtle border between rows */
}

table tr:last-child {
    border-bottom: none; /* Remove border from the last row */
}

table tr:hover {
    background-color: #374151; /* Highlight row on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}

/* Ensuring the next expense section occupies available space */
.expense-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Buttons */
.btn-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-edit, .btn-delete {
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    min-width: 80px;
    font-size: 0.875rem;
}

.btn-edit {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .table-container {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .table-container {
        width: 95%;
    }

    table {
        display: block;
        overflow-x: auto; /* Enable horizontal scrolling on small screens */
    }

    .table-date {
        position: static;
        text-align: right;
        margin-bottom: 10px;
    }
}


/* Pop up of Expense Summary */
/* Expense cards */

.expense-summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}


.custom-popup {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.custom-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.custom-cancel {
    background-color: #3085d6 ;
    color: white ;
    border-radius: 5px ;
}

.custom-confirm {
    background-color: #dc2626;
    color: white ;
    border-radius: 5px ;
}

/* Chatbot styles */

.profitpulse-chatbot-hidden {
    display: none;
}


#profitpulse-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00796B;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
}

#profitpulse-chatbot-toggle:hover {
    background-color: #005F56;
}

/* Chat Container */
#profitpulse-chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: #1E2A38;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profitpulse-chatbot-hidden {
    display: none;
}

/* Chat Header */
.profitpulse-chatbot-header {
    background: #00796B;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profitpulse-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}

#profitpulse-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Chatbox */
#profitpulse-chatbox {
    padding: 10px;
    height: 250px;
    overflow-y: auto;
    background: #263238;
    color: white;
}

.profitpulse-chatbot-bot-message, .profitpulse-chatbot-user-message {
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 80%;
}

.profitpulse-chatbot-bot-message {
    background: #00796B;
    text-align: left;
}

.profitpulse-chatbot-user-message {
    background: #4CAF50;
    text-align: right;
    align-self: flex-end;
}

/* Input Field */
.profitpulse-chatbot-input {
    display: flex;
    border-top: 1px solid #ccc;
}

#profitpulse-user-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    background: #37474F;
    color: white;
}

#profitpulse-send-btn {
    background: #00796B;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

#profitpulse-send-btn:hover {
    background: #005F56;
}


/* Chatbot Button (Image) */
.profitpulse-chatbot-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Positioned at bottom-left */
    width: 70px; /* Adjust size */
    height: 70px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect */
.profitpulse-chatbot-btn:hover {
    transform: scale(1.1);
}

/* Chatbot Window */
#profitpulse-chat-container {
    position: fixed;
    bottom: 100px;
    left: 20px; /* Chatbot also at bottom-left */
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
}
