/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0ede8;
    color: #1a1a1a;
}

/* Auth Layout */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-color: #f0ede8;*/
    background-color: #f5f2eb;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* App Layout */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    background-color: #1a1a1a;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5a623;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .nav-logo span {
        color: #f5a623;
    }

    .nav-logo img {
        height: 55px;
    }

.nav-tabs {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-tabs .nav-link {
        display: block;
        padding: 8px 16px;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.95rem;
        transition: all 0.2s;
    }

        .nav-tabs .nav-link:hover {
            color: white;
            background-color: rgba(255,255,255,0.1);
        }

        .nav-tabs .nav-link.active {
            background-color: #f5a623;
            color: #1a1a1a;
            font-weight: 600;
        }

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .nav-right a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        font-size: 0.9rem;
    }

        .nav-right a:hover {
            color: white;
        }


.nav-link {
    white-space: nowrap;
}
/* Main Content */
.main-content {
    margin-top: 56px;
    flex: 1;
    padding: 32px;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 48px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

    .page-header h1 {
        margin: 0;
        font-size: 2rem;
        font-weight: 700;
    }

/* Buttons */
.btn-primary {
    background-color: #f5a623;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-secondary {
    background-color: white;
    color: #1a1a1a;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .btn-secondary:hover {
        background-color: #f5f5f5;
        border-color: #aaa;
        color: #1a1a1a;
    }



    .badge-draft { background-color: #e5e7eb; color: #374151; }
.badge-sent { background-color: #dbeafe; color: #1d4ed8; }
.badge-accepted { background-color: #dcfce7; color: #15803d; }
.badge-declined { background-color: #fee2e2; color: #dc2626; }
.badge-expired { background-color: #fef3c7; color: #b45309; }
.badge-invoiced { background-color: #f3e8ff; color: #7e22ce; }

/* Date picker styling */
input[type="date"] {
    color-scheme: light;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0.5;
        cursor: pointer;
        filter: invert(0);
    }

        input[type="date"]::-webkit-calendar-picker-indicator:hover {
            opacity: 0.8;
        }

@media (max-width: 768px) {
    .nav-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap !important;
    }

        .nav-tabs::-webkit-scrollbar {
            display: none;
        }

        .nav-tabs li a {
            white-space: nowrap;
        }

    .nav-right {
        display: none;
    }

    .nav-logo span {
        font-size: 0.9rem;
    }
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
}

@media (max-width: 768px) {
    ul.nav-tabs {
        display: none !important;
    }

    .nav-right {
        display: none !important;
    }

    .hamburger {
        display: block !important;
    }
}

.mobile-menu {
    background: #2a2a2a;
    padding: 8px 0;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    display: none;
}

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 14px 24px;
        color: #ccc;
        text-decoration: none;
        font-size: 1rem;
        border-bottom: 1px solid #333;
    }

        .mobile-menu a:hover {
            background: #333;
            color: white;
        }


.search-bar {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

    .search-input:focus {
        outline: none;
        border-color: #0078d4;
        box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
    }