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

* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background: #fefefe;
    font-weight: 400;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

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

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

a {
    text-decoration: none;
}

.heading {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.heading h1 {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.heading p {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Forms */

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group select {
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-actions {
    padding-top: 4px;
}

.form-actions button {
    padding: 9px 24px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.form-actions button:hover {
    background: #3d5166;
}


.container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    background: #2c3e50;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: #3d5166;
}

/* Tables */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #e0e0e0;
    color: #34495e;
    font-weight: 600;
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #2c3e50;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .empty {
    color: #aaa;
    font-style: italic;
}

.table .actions {
    display: flex;
    gap: 12px;
}

.table .actions a {
    font-size: 0.85rem;
    color: #2c3e50;
}

.table .actions a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: #1a252f;
    padding: 0 20px;
    flex-shrink: 0;
    color: white;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
}

.nav-logo {
    height: 40px;
    width: 40px;
    vertical-align: middle;
}

.nav-brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.nav-links a {
    color: #ddd;
    font-weight: 500;
}

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

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 199;
}

.sidebar-overlay.active {
    display: block;
}

/* Table wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .container {
        padding: 16px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-card--company {
        grid-column: span 2;
    }
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #7f8c8d;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.summary-sub {
    font-size: 0.8rem;
    color: #aaa;
}

.summary-card--company {
    grid-column: span 2;
}

.summary-card--company .summary-value {
    font-size: 1.5rem;
}

.dash-section {
    margin-bottom: 32px;
}

.dash-section h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
}

.dash-actions {
    display: flex;
    gap: 12px;
}
