body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.upload-container {
    text-align: center;
    padding: 40px;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.data-table td a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.data-table td a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}

.visualization-container img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.entry-controls {
    margin: 20px 0;
    text-align: center;
}

.ratings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ratings-table th, .ratings-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.ratings-table input {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}

.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.form-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-buttons button:hover {
    background-color: #0056b3;
}

.self-rating {
    background-color: #fff3cd;
    position: relative;
    padding-top: 20px !important;
}

.self-rating-label {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8em;
    color: #856404;
    font-weight: bold;
}

.self-rating-input {
    background-color: #fff3cd;
    border: 2px solid #ffeeba;
}

.ratings-table td {
    position: relative;
}

.rating-group {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rating-group h5 {
    margin: 0 0 10px 0;
}

.rating-group input[type="number"] {
    width: 100px;
    padding: 5px;
    margin-bottom: 10px;
}

.rating-group textarea {
    width: 100%;
    height: 60px;
    padding: 5px;
    margin-top: 5px;
}

.self-rating-section {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#current-rater {
    font-weight: bold;
    color: #007bff;
}

.stats-container {
    margin: 20px 0;
}

.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card h3 {
    margin-top: 0;
    color: #333;
}

.data-table td a {
    color: #007bff;
    text-decoration: none;
}

.data-table td a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.ratings-details {
    margin-top: 30px;
}

.ratings-details h3 {
    margin: 20px 0 10px 0;
    color: #333;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visualization-container {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Category styles */
.over-confident {
    color: #dc3545;
    font-weight: bold;
}

.confident {
    color: #28a745;
    font-weight: bold;
}

.under-confident {
    color: #007bff;
    font-weight: bold;
}

.lookup {
    color: #6f42c1;
    font-weight: bold;
}

.lookdown {
    color: #fd7e14;
    font-weight: bold;
}

.grievance {
    color: #dc3545;
    font-weight: bold;
}

.closeaid {
    color: #28a745;
    font-weight: bold;
}

/* Info box styles */
.info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin: 5px 0;
}

/* Interpretation column */
.data-table td:last-child {
    color: #6c757d;
    font-style: italic;
}

/* Existing styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.results-container {
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visualization-container {
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.visualization-container img {
    max-width: 100%;
    height: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.button-group {
    margin-top: 20px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

/* Relationship Cards */
.relationship-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.relationship-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grievance-card {
    border-left: 4px solid #dc3545;
}

.closeaid-card {
    border-left: 4px solid #28a745;
}

.card-description {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

.relationship-item {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.relationship-item .staff-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.relationship-item .rating {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.relationship-item .reason {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Rating Tabs */
.ratings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #e9ecef;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.alert-info .table {
    margin-bottom: 0;
    font-size: 0.9em;
}

.alert-info .table th,
.alert-info .table td {
    padding: 0.3rem;
    text-align: center;
}

.alert-info .table th:first-child,
.alert-info .table td:first-child {
    text-align: left;
    font-weight: bold;
}

.alert-info ul {
    margin-bottom: 1rem;
}

.alert-info ul li {
    margin-bottom: 0.5rem;
}

/* Header Styles */
.navbar {
    background-color: #0d6efd;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 500;
}

header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0 !important;
    margin-bottom: 2rem !important;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #212529;
    margin: 0;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

/* Card Styles */
.card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
}

/* Table Styles */
.table th {
    background-color: #f8f9fa;
    font-weight: 500;
}
 