:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --danger: #ef4444;
    --danger-dark: #dc2626;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.home-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.home-button {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.home-button:hover {
    background: var(--primary-dark);
}

form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

label {
    font-weight: 500;
    color: #4b5563;
}

input, select, textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--primary);
    color: white;
}

button:hover {
    background: var(--primary-dark);
}

h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
}

th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover {
    background: #f9fafb;
}

#report-options {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#report-options h3 {
    margin-top: 0;
    border-bottom: none;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.edit {
    background: var(--primary);
    color: white;
}

.delete {
    background: var(--danger);
    color: white;
}

.edit:hover {
    background: var(--primary-dark);
}

.delete:hover {
    background: var(--danger-dark);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    body {
        padding: 1rem;
    }
}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media screen and (max-width: 640px) {
    h2 {
        font-size: 1.5rem;
    }

    /* Mobile table view */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        background: #fff;
    }

    td {
        border: none;
        border-bottom: 1px solid #e5e7eb;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    td:before {
        position: absolute;
        left: 0.75rem;
        width: 45%;
        padding-right: 0.75rem;
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1f2937;
        color: #f3f4f6;
    }

    .container, form, #report-options {
        background: #111827;
    }

    input, select, textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    h2, h3 {
        color: var(--primary);
        border-bottom-color: #374151;
    }

    th {
        background: #374151;
        color: #f3f4f6;
        border-bottom-color: #4b5563;
    }

    td {
        border-bottom-color: #4b5563;
    }

    tr:hover {
        background: #2d3748;
    }

    label {
        color: #d1d5db;
    }
}