        /*
        * This CSS styles the entire UI, including the new full-width header,
        * the main dashboard, the results list, and the detailed editor modal.
        */
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e67e22;
            --background-color: #ecf0f1;
            --card-background: #ffffff;
            --text-color: #333;
            --light-text-color: #7f8c8d;
            --danger-color: #e74c3c;
        }

        /* Ensure body and html take up full viewport */
        html, body {
            width: 100%;
            height: 100%;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--background-color);
            margin: 0;
            padding: 0;
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        /* Styles for the new full-width header */
        .page-header {
            width: 100%;
            background-color: var(--card-background);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
            margin-bottom: 30px;
        }

        /* Styles for the logo and its container */
        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* Styles for the GIF logo icon */
        .logo-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
        }
        
        .logo-icon-large {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            margin-bottom: 20px;
        }

        /* Styles for the new user profile section */
        .user-profile {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--secondary-color);
        }

        .user-profile span {
            font-weight: 500;
        }

        .social-signin {
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 8px;
            transition: background-color 0.2s ease;
            margin-bottom: 15px; /* Added margin to separate buttons */
        }

        .social-signin:hover {
            background-color: #f0f0f0;
        }

        .social-signin img {
            width: 32px;
            height: 32px;
        }

        /* New styles for the login/logout button */
        .login-btn, .logout-btn, #signOutButton {
            background-color: var(--secondary-color);
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin-left: 10px; /* Added margin */
        }

        .login-btn:hover, .logout-btn:hover, #signOutButton:hover {
            background-color: #2980b9;
        }

        /* App Container for layout with sidebar */
        .app-container {
            display: flex;
            width: 100%;
            max-width: 1200px; /* Adjust as needed */
            gap: 20px;
            margin-bottom: 30px;
        }

        /* Left Navigation Bar */
        .left-nav {
            width: 220px;
            background-color: var(--card-background);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border-radius: 12px;
            padding: 20px 0;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        .left-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .left-nav li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .left-nav li a:hover {
            background-color: #f0f0f0;
            color: var(--secondary-color);
        }

        .left-nav li a.active {
            background-color: var(--secondary-color);
            color: white;
            border-left: 4px solid var(--accent-color);
        }

        .left-nav li a .material-icons {
            font-size: 20px;
        }

        /* Content Area next to sidebar */
        .content-area {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .dashboard-container, .client-management-container, .settings-container, .report-sheet-container, .suggestions-container {
            background-color: var(--card-background);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            width: 100%; /* Take full width of content-area */
            padding: 30px;
            box-sizing: border-box;
        }

        .controls, .client-controls, .report-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }

        .client-controls {
            flex-direction: column; /* Stack client controls vertically */
        }

        .client-controls h2, .client-controls h3, .settings-container h2, .report-sheet-container h2, .suggestions-container h2 {
            width: 100%;
            margin-top: 0;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

        .client-form {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: flex-end;
        }

        .client-form .form-group {
            flex: 1 1 calc(50% - 15px); /* Two columns for form groups */
            min-width: 200px;
            margin-bottom: 0; /* Override default form-group margin */
        }

        .client-form .form-group label {
            margin-bottom: 5px;
        }

        .client-form .cta-button {
            flex: 1 1 100%; /* Button takes full width */
            margin-top: 10px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1 1 calc(50% - 15px); /* Align with other form groups */
        }

        .checkbox-group input[type="checkbox"] {
            width: auto;
            margin: 0;
        }

        .clients-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .client-card {
            background-color: #f8f9fa;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .client-card h4 {
            margin: 0 0 10px 0;
            color: var(--primary-color);
        }

        .client-card p {
            margin: 5px 0;
            font-size: 14px;
            color: var(--light-text-color);
        }

        .client-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }

        .edit-client-btn, .delete-client-btn {
            padding: 8px 15px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.2s ease;
        }

        .edit-client-btn {
            background-color: var(--secondary-color);
            color: white;
        }

        .edit-client-btn:hover {
            background-color: #2980b9;
        }

        .delete-client-btn {
            background-color: var(--danger-color);
            color: white;
        }

        .delete-client-btn:hover {
            background-color: #c0392b;
        }

        .input-group {
            flex: 1;
            min-width: 250px;
            position: relative; /* Needed for positioning the calendar */
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--light-text-color);
        }

        .input-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            box-sizing: border-box;
            cursor: pointer; /* Indicate it's clickable */
            background-color: var(--card-background);
        }

        /* Calendar styling */
        .calendar-container {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 5;
            background-color: var(--card-background);
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            padding: 10px;
            display: none;
            flex-direction: column;
            width: 300px;
            margin-top: 10px;
        }

        .calendar-container.visible {
            display: flex;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px;
            font-weight: 500;
            margin-bottom: 10px;
        }

        .nav-btn {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: var(--primary-color);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
        }

        .calendar-day, .calendar-weekday {
            padding: 8px;
            border-radius: 50%;
            font-size: 14px;
        }

        .calendar-weekday {
            font-weight: bold;
            color: var(--light-text-color);
        }

        .calendar-day {
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .calendar-day:hover {
            background-color: #f0f0f0;
        }

        .calendar-day.selected {
            background-color: var(--secondary-color);
            color: white;
        }

        .calendar-day.in-range {
            background-color: #c4e4f7;
            border-radius: 0;
        }

        .calendar-day.in-range:first-of-type {
            border-top-left-radius: 50%;
            border-bottom-left-radius: 50%;
        }

        .calendar-day.in-range:last-of-type {
            border-top-right-radius: 50%;
            border-bottom-right-radius: 50%;
        }

        .calendar-day.selected.start, .calendar-day.selected.end {
            border-radius: 50%;
        }

        .calendar-day.disabled {
            color: #ccc;
            cursor: not-allowed;
        }

        /* Styles for quick-select date buttons */
        .date-shortcuts {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 10px;
        }

        .date-shortcut-btn {
            background-color: #f0f0f0;
            color: var(--text-color);
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 16px;
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease;
        }

        .date-shortcut-btn:hover {
            background-color: #e0e0e0;
            border-color: #ccc;
        }

        .cta-button {
            background-color: var(--accent-color);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .cta-button:hover:not(:disabled) {
            background-color: #d35400;
        }

        .cta-button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        .hidden {
            display: none;
        }

        .results-container {
            /* This will be toggled by JS to show/hide the results */
            display: none;
        }

        .results-container.visible {
            display: block;
        }

        .entries-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }

        .entry-card {
            background-color: #f8f9fa;
            padding: 15px 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            padding-top: 40px;
        }

        .entry-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        .source-icon {
            font-size: 24px;
        }

        .entry-content {
            flex-grow: 1;
        }

        .entry-content h4 {
            margin: 0;
            font-weight: 500;
        }

        .entry-content p {
            margin: 5px 0 0;
            font-size: 14px;
            color: var(--light-text-color);
        }

        .modal {
            display: none; /* Hidden by default */
            position: fixed;
            z-index: 10;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            justify-content: center;
            align-items: center;
        }

        .modal.visible {
            display: flex;
        }

        .modal-content {
            background-color: var(--card-background);
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            text-align: center; /* Center content within modals, especially login */
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-body {
            line-height: 1.5;
            color: var(--light-text-color);
        }

        .close-btn {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group input, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-sizing: border-box;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }

        .modal-footer-login {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            color: var(--light-text-color);
            font-size: 12px;
            text-align: center;
        }

        .cancel-btn, .save-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
        }

        .cancel-btn {
            background-color: #bdc3c7;
            color: white;
        }

        .save-btn {
            background-color: var(--secondary-color);
            color: white;
        }

        .page-footer {
            width: 100%;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
        }
        
        .footer-content {
            color: var(--text-color);
            text-align: center;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 10px;
        }
        
        .footer-links a {
            color: var(--secondary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-links a:hover {
            color: var(--primary-color);
        }

        /* Loading spinner styles */
        .loading-spinner-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            min-height: 100px; /* Ensure spinner has space */
        }

        .loading-spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-left-color: var(--secondary-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Report Sheet Styles */
        .report-controls {
            align-items: flex-end;
        }

        .report-table-section {
            margin-top: 30px;
        }

        .report-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background-color: var(--card-background);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .report-table thead {
            background-color: var(--primary-color);
            color: white;
        }

        .report-table th {
            padding: 15px 20px;
            text-align: left;
            font-weight: 600;
            border-bottom: 1px solid #4a667f;
        }

        .invoice-table-cell {
            padding: 12px 20px;
            border-bottom: 1px solid #eee;
            color: var(--text-color);
            font-size: 15px;
        }

        .invoice-table-cell.text-right {
            text-align: right;
        }

        .report-table tbody tr:last-child .invoice-table-cell {
            border-bottom: none;
        }

        .report-table tbody tr:hover {
            background-color: #f8f9fa;
        }

        .invoice-total-label {
            padding: 15px 20px;
            text-align: right;
            font-weight: 600;
            color: var(--primary-color);
            border-top: 2px solid var(--primary-color);
        }

        .invoice-total-value {
            padding: 15px 20px;
            text-align: right;
            font-weight: bold;
            color: var(--primary-color);
            font-size: 18px;
            border-top: 2px solid var(--primary-color);
        }

        .autocomplete-suggestions {
            border: 1px solid #ddd;
            max-height: 150px;
            overflow-y: auto;
            position: absolute;
            background-color: white;
            z-index: 10;
            width: 100%;
        }

        .autocomplete-suggestions div {
            padding: 10px;
            cursor: pointer;
        }

        .autocomplete-suggestions div:hover {
            background-color: #f0f0f0;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .page-header {
                flex-direction: column;
                padding: 15px 20px;
                gap: 15px;
            }

            .user-profile {
                width: 100%;
                justify-content: center;
            }
            
            /* .welcome-container is removed */

            /* Adjust app container for mobile */
            .app-container {
                flex-direction: column;
                gap: 0; /* Remove gap when stacked */
            }

            .left-nav {
                width: 100%;
                border-radius: 0; /* Full width, no rounded corners at top/bottom */
                padding: 10px 0;
                margin-bottom: 20px; /* Space below nav */
            }

            .left-nav ul {
                display: flex;
                justify-content: space-around; /* Distribute items evenly */
                flex-wrap: wrap;
            }

            .left-nav li a {
                padding: 10px 15px;
                justify-content: center; /* Center icon and text */
                flex-direction: column; /* Stack icon and text */
                font-size: 12px;
            }

            .left-nav li a .material-icons {
                font-size: 20px;
                margin-bottom: 5px;
            }

            .dashboard-container, .client-management-container, .settings-container, .report-sheet-container, .suggestions-container {
                width: 95%;
                padding: 20px;
                margin: 0 auto; /* Center content */
            }

            .controls {
                flex-direction: column;
                gap: 15px;
            }

            .input-group {
                min-width: unset;
                width: 100%;
            }

            .cta-button {
                width: 100%;
            }

            .calendar-container {
                width: 100%; /* Make calendar full width of its parent */
                box-sizing: border-box;
            }

            .modal-content {
                width: 95%;
                padding: 20px;
            }

            .client-form .form-group {
                flex: 1 1 100%;
                min-width: unset;
            }

            .checkbox-group {
                flex: 1 1 100%;
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 20px;
            }

            .logo-icon {
                width: 28px;
                height: 28px;
            }
            
            .logo-icon-large {
                width: 50px;
                height: 50px;
            }

            .user-profile img {
                width: 35px;
                height: 35px;
            }

            .login-btn, .logout-btn, #signOutButton {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            .welcome-container h1 {
                font-size: 24px;
            }

            .welcome-container p {
                font-size: 16px;
            }

            .social-signin {
                font-size: 14px;
                padding: 8px;
            }

            .input-group input, .cta-button {
                font-size: 14px;
                padding: 10px;
            }

            .date-shortcut-btn {
                padding: 5px 10px;
                font-size: 11px;
            }

            .entry-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        .entry-actions {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
        }

        .icon-button {
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s;
        }

        .icon-button:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .icon-button .material-icons {
            font-size: 20px;
            color: #555;
        }
        .login-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center; /* Center the buttons horizontally */
        }