/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar h1 {
    color: white;
    font-size: 1.5rem;
    display: inline-block;
}

.nav-menu {
    list-style: none;
    display: inline-block;
    float: right;
    margin-top: 0.5rem;
}

.nav-menu li {
    display: inline-block;
    margin-left: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Login page */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
button, .btn {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

button:hover, .btn:hover {
    background-color: #2980b9;
}

form button {
    width: 100%;
}

/* Error messages */
.error {
    color: #e74c3c;
    margin-top: 1rem;
    text-align: center;
}

/* Main content */
.main-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.main-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Report sections */
.report-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.report-actions {
    margin-top: 2rem;
    text-align: center;
}

.report-actions .btn {
    margin: 0 0.5rem;
}

/* Search */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.results-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Results table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    border: 1px solid #ddd;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.results-table th:last-child,
.results-table td:last-child {
    border-right: none;
}

.results-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
}

.results-table tbody tr:hover {
    background-color: #f5f5f5;
}

.results-table .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

/* Button variants */
.btn-primary {
    background-color: #3498db;
}

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

.btn-info {
    background-color: #16a085;
}

.btn-info:hover {
    background-color: #138871;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Action buttons container */
.action-buttons {
    white-space: nowrap;
}

.info {
    color: #3498db;
    padding: 1rem;
    background-color: #e8f4f8;
    border-radius: 4px;
}

/* Provider name badge */
.provider-name {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e8f4f8;
    color: #2980b9;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #b8dff0;
    cursor: help;
}

/* Details table */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.details-table th {
    font-weight: 600;
    color: #2c3e50;
    width: 200px;
    background-color: #f8f9fa;
}

.details-table td {
    color: #555;
}

/* Request action badges */
.request-action-declined {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #ffe8e8;
    color: #c0392b;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #f5b7b1;
}

.request-action-approved {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #d4edda;
    color: #27ae60;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #a3cfb0;
}

.request-action-other {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ddd;
}

/* Print styles */
@media print {
    .navbar, .report-actions {
        display: none;
    }

    body {
        background: white;
    }

    .report-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
