@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f1a 50%, #1a1a1a 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    font-size: 15px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(242, 109, 61, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(242, 109, 61, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(242, 109, 61, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    max-width: 100vw;
    overflow-x: hidden;
}

.header {
    background: #242424;
    border-bottom: 1px solid #333;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    max-width: 100vw;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.logo-separator {
    color: #666;
    font-size: 24px;
    font-weight: 300;
    flex-shrink: 0;
}

h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.header-actions button {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

#searchInput {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput:focus {
    outline: none;
    border-color: #F26D3D;
    background-color: #242424;
    box-shadow: 0 0 0 3px rgba(242, 109, 61, 0.1);
}

#searchInput:hover {
    border-color: #444;
    background-color: #212121;
}

.btn-search {
    padding: 8px 12px;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 40px;
}

.btn-search:hover {
    background: #333;
    border-color: #F26D3D;
}

/* Spotlight Search Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    z-index: 3000;
    animation: spotlightFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-overlay.active {
    display: flex;
}

@keyframes spotlightFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.spotlight-container {
    width: 90%;
    max-width: 640px;
    animation: spotlightSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spotlightSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.spotlight-search-box {
    background: rgba(36, 36, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 109, 61, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 0 40px rgba(242, 109, 61, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-search-box:focus-within {
    border-color: rgba(242, 109, 61, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(242, 109, 61, 0.2),
                0 0 50px rgba(242, 109, 61, 0.25);
}

.spotlight-icon {
    color: #999;
    flex-shrink: 0;
    transition: color 0.2s;
}

.spotlight-search-box:focus-within .spotlight-icon {
    color: #F26D3D;
}

#spotlightInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
}

#spotlightInput::placeholder {
    color: #666;
}

.spotlight-shortcut-hint {
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
}

.spotlight-results {
    margin-top: 12px;
    background: rgba(36, 36, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none;
}

.spotlight-results.active {
    display: block;
    animation: spotlightResultsSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spotlightResultsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spotlight-results::-webkit-scrollbar {
    width: 8px;
}

.spotlight-results::-webkit-scrollbar-track {
    background: transparent;
}

.spotlight-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.spotlight-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.spotlight-result-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}

.spotlight-result-item:last-child {
    border-bottom: none;
}

.spotlight-result-item:hover {
    background: rgba(242, 109, 61, 0.1);
    border-left-color: #F26D3D;
}

.spotlight-result-item.selected {
    background: rgba(242, 109, 61, 0.15);
    border-left-color: #F26D3D;
}

.spotlight-result-item.request:hover,
.spotlight-result-item.request.selected {
    border-left-color: #ffc107;
}

.spotlight-result-item.definitive:hover,
.spotlight-result-item.definitive.selected {
    border-left-color: #4caf50;
}

.spotlight-result-item.canceled:hover,
.spotlight-result-item.canceled.selected {
    border-left-color: #f44336;
}

.spotlight-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(242, 109, 61, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.spotlight-result-item.request .spotlight-result-icon {
    background: rgba(255, 193, 7, 0.15);
}

.spotlight-result-item.definitive .spotlight-result-icon {
    background: rgba(76, 175, 80, 0.15);
}

.spotlight-result-item.canceled .spotlight-result-icon {
    background: rgba(244, 67, 54, 0.15);
    opacity: 0.6;
}

.spotlight-result-content {
    flex: 1;
    min-width: 0;
}

.spotlight-result-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-result-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-result-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spotlight-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.spotlight-result-badge.request {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.spotlight-result-badge.definitive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.spotlight-result-badge.canceled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.spotlight-empty {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.spotlight-info {
    padding: 12px 18px;
    background: rgba(242, 109, 61, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #F26D3D;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #F26D3D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    background: #3d1a1a;
    border: 1px solid #5a2020;
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 24px;
    font-size: 14px;
}

.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.project-list-section {
    background: #242424;
    border-right: 1px solid #333;
    padding: 16px;
    overflow-y: auto;
    width: 100%;
    order: 1;
}

/* Custom scrollbar for project list */
.project-list-section::-webkit-scrollbar {
    width: 8px;
}

.project-list-section::-webkit-scrollbar-track {
    background: transparent;
}

.project-list-section::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.project-list-section:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.project-list-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.resizer {
    width: 4px;
    cursor: col-resize;
    background: #333;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.resizer:hover {
    background: #F26D3D;
}

.resizer:active {
    background: #F26D3D;
}

.calendar-section {
    background: #1a1a1a;
    flex: 1;
    overflow-y: auto;
    order: 2;
}

.invoice-list-section {
    background: #242424;
    border-left: 1px solid #333;
    padding: 16px;
    overflow-y: auto;
    width: 100%;
    order: 3;
}

.invoice-list-section h2 {
    font-size: 17px;
    margin-bottom: 0;
    color: #fff;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.section-header .section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header:not(:first-child) {
    margin-top: 24px;
    padding-top: 8px;
}

.gear-refresh-btn {
    background: transparent;
    border: 1px solid #333;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.gear-refresh-btn:hover {
    background: #333;
    border-color: #F26D3D;
    color: #F26D3D;
}

.toggle-section-btn {
    background: transparent;
    border: 1px solid #333;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 30px;
}

.toggle-section-btn:hover {
    background: #333;
    border-color: #F26D3D;
    color: #F26D3D;
    transform: none;
}

.toggle-section-btn .toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-section-btn .toggle-icon.expanded {
    transform: rotate(180deg);
}

.section-content {
    display: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-content.expanded {
    display: block;
}

.invoice-list-section::-webkit-scrollbar {
    width: 8px;
}

.invoice-list-section::-webkit-scrollbar-track {
    background: transparent;
}

.invoice-list-section::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.invoice-list-section:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.invoice-list-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gear-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gear-loading,
.gear-error,
.gear-empty {
    background: #262626;
    border-radius: 8px;
    padding: 16px;
    color: #ccc;
    text-align: center;
}

.gear-error {
    border: 1px solid #f44336;
    color: #f44336;
}

.gear-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #202020;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #2e2e2e;
}

.gear-summary h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #fff;
}

.gear-summary-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #ccc;
}

.gear-summary-statuses {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.gear-summary-pill {
    background: #2e2e2e;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid transparent;
}

.gear-summary-pill.available { border-color: #4caf50; }
.gear-summary-pill.reserved { border-color: #ffc107; }
.gear-summary-pill.checked-out { border-color: #03a9f4; }
.gear-summary-pill.maintenance { border-color: #ff9800; }
.gear-summary-pill.retired { border-color: #9e9e9e; }
.gear-summary-pill.unknown { border-color: #9e9e9e; }

.gear-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

.gear-summary-alert {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 6px;
    padding: 6px 10px;
    color: #ff7961;
    font-size: 13px;
}

.gear-summary-alert.due-soon {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffecb3;
}

.gear-summary-ok {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 6px;
    padding: 6px 10px;
    color: #a5d6a7;
    font-size: 13px;
}

.gear-card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gear-card {
    background: #252525;
    border-radius: 10px;
    padding: 14px;
    border-left: 3px solid #F26D3D;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gear-card.available { border-left-color: #4caf50; }
.gear-card.reserved { border-left-color: #ffc107; }
.gear-card.checked-out { border-left-color: #03a9f4; }
.gear-card.maintenance { border-left-color: #ff9800; }
.gear-card.retired { border-left-color: #9e9e9e; opacity: 0.7; }
.gear-card.unknown { border-left-color: #9e9e9e; }

.gear-card:hover {
    background: #2d2d2d;
    transform: translateX(4px);
}

.gear-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.gear-card-title h4 {
    margin: 6px 0 0;
    font-size: 16px;
    color: #fff;
}

.gear-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.gear-status-pill.available { border-color: rgba(76, 175, 80, 0.6); }
.gear-status-pill.reserved { border-color: rgba(255, 193, 7, 0.6); }
.gear-status-pill.checked-out { border-color: rgba(3, 169, 244, 0.6); }
.gear-status-pill.maintenance { border-color: rgba(255, 152, 0, 0.6); }
.gear-status-pill.retired { border-color: rgba(158, 158, 158, 0.6); }

.gear-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #bbb;
}

.gear-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ddd;
    font-size: 14px;
}

.gear-card-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.gear-card-label {
    color: #888;
}

.gear-card-row span:last-child {
    text-align: right;
    flex: 1;
}

.gear-card-notes {
    margin-top: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    color: #bdbdbd;
    font-size: 13px;
}

.gear-card-footer {
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .gear-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .gear-card-grid {
        grid-template-columns: 1fr;
    }
}
.invoice-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #F26D3D;
    transition: all 0.2s;
    max-width: 100%;
    overflow: hidden;
}

.invoice-card:hover {
    background: #333;
    transform: translateX(4px);
}

.invoice-card.request {
    border-left-color: #ffc107;
}

.invoice-card.definitive {
    border-left-color: #4caf50;
}

.invoice-card.confirmed-by-bart {
    border-left-color: #4caf50;
}

.invoice-card.canceled {
    border-left-color: #f44336;
    opacity: 0.6;
}

.invoice-card-title {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.invoice-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

.invoice-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.invoice-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.invoice-card-badge.processed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.invoice-card-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.invoice-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Logging Section Styles */
.logging-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #4a9eff;
    transition: all 0.2s;
    max-width: 100%;
    overflow: hidden;
}

.logging-card:hover {
    background: #333;
    transform: translateX(4px);
}

.logging-card.error {
    border-left-color: #f44336;
}

.logging-card.warning,
.logging-card.warn {
    border-left-color: #ffc107;
}

.logging-card.success {
    border-left-color: #4caf50;
}

.logging-card.info {
    border-left-color: #4a9eff;
}

.logging-card.debug {
    border-left-color: #9c27b0;
}

.logging-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.logging-card-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.logging-card-level {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    flex-shrink: 0;
}

.logging-card-time {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}

.logging-card-message {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}

.logging-card-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}

.logging-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.project-list-section h2 {
    font-size: 17px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.filter-controls {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: .3s;
    border-radius: 24px;
    border: 1px solid #333;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #F26D3D;
    border-color: #F26D3D;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-slider:hover {
    box-shadow: 0 0 8px rgba(242, 109, 61, 0.3);
}

.month-group {
    margin-bottom: 24px;
}

.month-group-header {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #F26D3D;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 100%;
    overflow: hidden;
}

.project-card:hover {
    background: #333;
    transform: translateX(4px);
}

.project-card.request {
    border-left-color: #ffc107;
}

.project-card.definitive {
    border-left-color: #4caf50;
}

.project-card.confirmed-by-bart {
    border-left-color: #4caf50;
}

.project-card.canceled {
    border-left-color: #f44336;
    opacity: 0.6;
}

.project-card-title {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.project-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.project-card-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.calendar {
    background: #1a1a1a;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #242424;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.calendar-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-header h2 {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
}

.calendar-nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toggle-panel-btn {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: none;
}

.toggle-panel-btn:hover {
    background: #333;
    border-color: #F26D3D;
    transform: translateY(-1px);
}

.toggle-panel-btn.active {
    background: #F26D3D;
    border-color: #F26D3D;
}

@media (min-width: 769px) {
    .toggle-panel-btn {
        display: block;
    }
}

.calendar-nav-buttons button {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.2s;
}

.calendar-nav-buttons button:hover {
    background: #333;
    border-color: #F26D3D;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background: #1a1a1a;
    flex: 1;
    overflow: auto;
}

.calendar-day-header {
    background: #242424;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day {
    background: #1a1a1a;
    min-height: 100px;
    padding: 8px 4px 4px 4px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: #242424;
}

.calendar-day.creating {
    animation: pulse 0.6s ease-in-out;
    background: #3d2a1a !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(242, 109, 61, 0.5); }
}

.calendar-day.other-month {
    background: #141414;
    color: #666;
}

.calendar-day.today {
    background: #2a2020;
}

.calendar-day.drag-selected {
    background: #3d2a1a !important;
    border: 1px solid #F26D3D !important;
}

.calendar-day.drag-start {
    background: #3d2a1a !important;
    border: 2px solid #F26D3D !important;
}

.calendar-day-number {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: #e0e0e0;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day.other-month .calendar-day-number {
    color: #666;
}

.calendar-events-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
}

.calendar-event {
    background: #F26D3D;
    color: white;
    padding: 3px 6px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
    min-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    white-space: normal;
}

.calendar-event.spanning-start {
    border-radius: 2px 0 0 2px;
    padding-right: 4px;
}

.calendar-event.spanning-middle {
    border-radius: 0;
    padding-left: 4px;
    padding-right: 4px;
}

.calendar-event.spanning-end {
    border-radius: 0 2px 2px 0;
    padding-left: 4px;
}

.calendar-event.spanning-single {
    border-radius: 2px;
}

.calendar-event:hover {
    opacity: 0.8;
}

.calendar-event.request {
    background: #ffffff;
    color: #000;
    font-weight: 700;
}

.calendar-event.definitive {
    background: #ffc107;
    color: #000;
    font-weight: 700;
}

.calendar-event.confirmed-by-bart {
     background: #4caf50;
    color: #fff;
    font-weight: 700;
}

.calendar-event.confirmed-by-bart {
    background: #4caf50;
    color: #fff;
    font-weight: 700;
}

.calendar-event[class*="Confirmed - By Bart"] {
    background: #4caf50;
    color: #fff;
    font-weight: 700;
}

.calendar-event.canceled {
    background: #f44336;
    color: #fff;
    font-weight: 700;
    text-decoration: line-through;
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status.request {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

.status.definitive {
    background: #ffc107;
    color: #000000;
    border: 1px solid #b8860b;
}

.status.confirmed-by-bart {
    background: #4caf50;
    color: #ffffff;
    border: 1px solid #2e7d32;
}

.status.canceled {
    background: #f44336;
    color: #ffffff;
    border: 1px solid #b71c1c;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

button:hover {
    transform: translateY(-1px);
}

.btn-refresh {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
}

.btn-refresh:hover {
    background: #333;
    border-color: #F26D3D;
}

.btn-add {
    background: #F26D3D;
    color: white;
}

.btn-add:hover {
    background: #d95a2d;
}

.btn-edit {
    background: #F26D3D;
    color: white;
    padding: 6px 12px;
}

.btn-delete {
    background: #f44336;
    color: white;
    padding: 6px 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #242424;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
}

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

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #F26D3D;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background-color: #1a1a1a;
    color: #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #F26D3D;
    background-color: #242424;
    box-shadow: 0 0 0 3px rgba(242, 109, 61, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #444;
    background-color: #212121;
}

/* Custom Select Dropdown Styling */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group select:hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26D3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26D3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Basic option styling - note: browser support for option styling is limited */
.form-group select option {
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 12px;
}

/* Datalist Input Enhancements */
.form-group input[list] {
    position: relative;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 40px;
}

/* Hide the default datalist dropdown arrow */
.form-group input[list]::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.form-group input[list]:hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26D3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-save {
    background: #F26D3D;
    color: white;
    padding: 12px 24px;
}

.btn-save:hover {
    background: #d95a2d;
}

.btn-cancel {
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 12px 24px;
    border: 1px solid #333;
}

.btn-cancel:hover {
    background: #333;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1500;
    animation: slideInRight 0.3s ease-out;
}

.search-modal.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-modal-content {
    background: #242424;
    border-radius: 12px;
    padding: 20px;
    width: 400px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #F26D3D;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(242, 109, 61, 0.2);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.search-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #F26D3D;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: #333;
    transform: translateX(4px);
}

.search-result-item.request {
    border-left-color: #ffc107;
}

.search-result-item.definitive {
    border-left-color: #4caf50;
}

.search-result-item.canceled {
    border-left-color: #f44336;
    opacity: 0.6;
}

.search-result-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
}

.search-result-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.search-result-date {
    flex: 1;
}

.search-info {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    color: #999;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* Log Detail Modal */
.log-detail-content {
    max-height: 70vh;
    overflow-y: auto;
}

.log-detail-content::-webkit-scrollbar {
    width: 8px;
}

.log-detail-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.log-detail-content::-webkit-scrollbar-thumb {
    background: rgba(242, 109, 61, 0.3);
    border-radius: 4px;
}

.log-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 109, 61, 0.5);
}

.log-detail-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333;
}

.log-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.log-detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.log-detail-item {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #F26D3D;
}

.log-detail-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.log-detail-value {
    display: block;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    word-break: break-word;
}

.log-detail-message {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #4a9eff;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.log-detail-raw {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #333;
    color: #e0e0e0;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    overflow-x: auto;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.log-detail-raw::-webkit-scrollbar {
    height: 6px;
}

.log-detail-raw::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 3px;
}

.log-detail-raw::-webkit-scrollbar-thumb {
    background: rgba(242, 109, 61, 0.3);
    border-radius: 3px;
}

.log-detail-raw::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 109, 61, 0.5);
}

/* Build ID Display */
.build-id {
    position: fixed;
    bottom: 8px;
    left: 8px;
    font-size: 9px;
    color: #444;
    font-family: 'Courier New', monospace;
    opacity: 0.4;
    pointer-events: none;
    z-index: 100;
    user-select: none;
    transition: opacity 0.3s;
}

.build-id:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    transition: all 0.3s;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-menu:hover span {
    background: #F26D3D;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #242424;
    border-right: 1px solid #333;
    z-index: 1100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: #2a2a2a;
}

.mobile-nav-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: #F26D3D;
    transform: none;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    gap: 16px;
}

.mobile-nav-item:hover {
    background: #2a2a2a;
    border-left-color: #F26D3D;
}

.mobile-nav-item.active {
    background: #2a2a2a;
    border-left-color: #F26D3D;
}

.mobile-nav-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.mobile-nav-label {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
    flex: 1;
}

.mobile-nav-item.active .mobile-nav-label {
    color: #F26D3D;
    font-weight: 600;
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        height: 100vh;
    }
    
    .container {
        height: 100vh;
        overflow: hidden;
    }
    
    .header {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }
    
    .hamburger-menu {
        display: flex;
        margin-right: 8px;
    }
    
    .logo {
        height: 28px;
    }
    
    .logo-separator {
        font-size: 18px;
    }
    
    h1 {
        font-size: 16px;
    }
    
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .header-actions button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-container {
        display: none;
    }
    
    .btn-refresh {
        display: none;
    }
    
    .main-layout {
        flex-direction: column;
        overflow: hidden;
        flex: 1;
    }
    
    .project-list-section {
        order: 1;
        border-right: none;
        border-bottom: none;
        width: 100%;
        flex: 1;
        overflow-y: auto;
        display: block;
    }
    
    .project-list-section.mobile-hidden {
        display: none;
    }
    
    .resizer {
        display: none;
    }
    
    .calendar-section {
        order: 2;
        border-left: none;
        width: 100%;
        flex: 1;
        overflow-y: auto;
        display: none;
    }
    
    .calendar-section.mobile-visible {
        display: flex;
    }
    
    .invoice-list-section {
        order: 3;
        border-left: none;
        width: 100%;
        flex: 1;
        overflow-y: auto;
        display: none;
    }
    
    .invoice-list-section.mobile-visible {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .logo {
        height: 50px;
    }

    .logo-separator {
        font-size: 28px;
    }

    .main-layout {
        flex-direction: row;
    }

    .project-list-section {
        width: 25%;
        min-width: 250px;
        max-width: 400px;
        order: 1;
        border-right: 1px solid #333;
        padding: 16px;
        overflow-y: auto;
        transition: all 0.3s ease;
    }
    
    .project-list-section.desktop-hidden {
        width: 0;
        min-width: 0;
        max-width: 0;
        border-right: none;
        padding: 0;
        overflow: hidden;
    }

    #resizer {
        order: 2;
        display: block;
    }
    
    #resizer.desktop-hidden {
        display: none;
    }

    .calendar-section {
        flex: 1;
        order: 3;
    }

    #resizer2 {
        order: 4;
        display: block;
    }
    
    #resizer2.desktop-hidden {
        display: none;
    }

    .invoice-list-section {
        width: 25%;
        min-width: 250px;
        max-width: 400px;
        order: 5;
        padding: 16px;
        overflow-y: auto;
        transition: all 0.3s ease;
    }
    
    .invoice-list-section.desktop-hidden {
        width: 0;
        min-width: 0;
        max-width: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Past Events Page Styles */
.past-events-section {
    background: #1a1a1a;
    padding: 24px;
    overflow-y: auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.past-events-section::-webkit-scrollbar {
    width: 10px;
}

.past-events-section::-webkit-scrollbar-track {
    background: transparent;
}

.past-events-section::-webkit-scrollbar-thumb {
    background: rgba(242, 109, 61, 0.3);
    border-radius: 5px;
}

.past-events-section::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 109, 61, 0.5);
}

.past-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #333;
}

.past-events-header h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.past-events-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.past-events-month-group {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.month-header {
    font-size: 20px;
    font-weight: 700;
    color: #F26D3D;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(242, 109, 61, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.past-event-card {
    background: #242424;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #F26D3D;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.past-event-card:hover {
    background: #2a2a2a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.past-event-card.request {
    border-left-color: #ffc107;
}

.past-event-card.definitive {
    border-left-color: #4caf50;
}

.past-event-card.canceled {
    border-left-color: #f44336;
    opacity: 0.7;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-badge.request {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.event-badge.definitive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.event-badge.canceled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.detail-label {
    color: #999;
    font-weight: 500;
    min-width: 90px;
    flex-shrink: 0;
}

.detail-value {
    color: #e0e0e0;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile responsiveness for past events */
@media (max-width: 768px) {
    .past-events-section {
        padding: 16px;
    }
    
    .past-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .past-events-header h2 {
        font-size: 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .month-header {
        font-size: 18px;
    }
    
    .event-title {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Homepage layout */
.home-body {
    background: radial-gradient(circle at top left, rgba(242, 109, 61, 0.25), transparent 45%),
        radial-gradient(circle at bottom right, rgba(242, 109, 61, 0.15), transparent 50%),
        #101010;
    color: #f7f7f7;
    overflow: auto;
    min-height: 100vh;
    height: auto;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: #1e1e1e;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.home-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-pretitle {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.home-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
}

.home-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 460px;
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.home-btn-primary {
    background: #f26d3d;
    color: #0f0f0f;
    box-shadow: 0 12px 24px rgba(242, 109, 61, 0.35);
}

.home-btn-primary:hover {
    background: #ff7f4e;
}

.home-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-section {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 24px;
    font-weight: 800;
}

.section-subtitle {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.status-pill.status-definitive {
    background: rgba(35, 149, 82, 0.25);
    color: #49ff9c;
}

.status-pill.status-request {
    background: rgba(242, 196, 61, 0.2);
    color: #ffd666;
}

.status-pill.status-canceled {
    background: rgba(255, 82, 82, 0.25);
    color: #ff9b9b;
}

.status-pill.status-pill-empty {
    opacity: 0.6;
}

.next-project-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.next-project-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.next-project-title {
    font-size: 26px;
    font-weight: 800;
}

.next-project-timeline {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
}

.next-project-flags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-pill {
    background: rgba(82, 188, 255, 0.15);
    color: #9addff;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.certainty-pill {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.next-project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.next-project-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.next-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.home-tile {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.stat-caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timeline-indicator {
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    height: 56px;
}

.timeline-indicator.status-definitive {
    background: linear-gradient(180deg, rgba(73, 255, 156, 0.9), rgba(73, 255, 156, 0.3));
}

.timeline-indicator.status-request {
    background: linear-gradient(180deg, rgba(255, 214, 102, 0.9), rgba(255, 214, 102, 0.3));
}

.timeline-indicator.status-canceled {
    background: linear-gradient(180deg, rgba(255, 155, 155, 0.9), rgba(255, 155, 155, 0.3));
}

.timeline-content {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.timeline-header h3 {
    font-size: 18px;
}

.timeline-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.timeline-time {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.timeline-location {
    margin-top: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.home-btn-link {
    color: #ffb48a;
    text-decoration: none;
    font-weight: 600;
    align-self: center;
}

.home-btn-link:hover {
    text-decoration: underline;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.quick-link-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.quick-link-icon {
    font-size: 26px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 14px;
}

.quick-link-text h3 {
    font-size: 18px;
    font-weight: 700;
}

.quick-link-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.home-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    padding-bottom: 16px;
}

.home-error {
    max-width: 1200px;
    margin: -32px auto 32px;
}

@media (max-width: 768px) {
    .home-container {
        padding: 32px 16px 48px;
    }

    .home-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-logo {
        width: 60px;
        height: 60px;
    }

    .home-title {
        font-size: 26px;
    }

    .home-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-section,
    .home-tile {
        padding: 20px;
    }

    .next-project-title {
        font-size: 22px;
    }

    .next-project-meta {
        grid-template-columns: 1fr;
    }
}
