body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

header {
    background-color: #3498db;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 15px;
}

#regalloc-logo {
  perspective: 1000px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#regalloc-logo .horizontal-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  color: white;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

#regalloc-logo .letter {
  position: relative;
  width: 36px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#regalloc-logo .underline {
  width: 30px;
  height: 2px;
  background-color: white;
  margin: 3px;
}

#regalloc-logo .underline.gray {
  background-color: white;
  filter: blur(2px);
}

#regalloc-logo .logo-title {
  transform: rotateX(45deg) scaleY(0.7) translateY(-0.9em);
  transform-origin: bottom center;
  color: white;
  font-size: 2.5em;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: -0.3em;
}

header i {
  display: block;
  margin-top: -1.5em;
  padding-top: 0;
}

nav {
    background-color: #2980b9;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

h2, h3 {
    color: #2c3e50;
}

.button {
    display: inline-block;
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #27ae60;
}

.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.button.disabled:hover {
    background-color: inherit;
    color: inherit;
}

.topic {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.topic-header {
    margin-bottom: 15px;
}

.topic-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.topic-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
}

.topic-category {
    font-weight: 600;
    color: #2980b9;
}

.topic-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.topic-description {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.topic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.topic-stats .contributions,
.topic-stats .rewards {
    font-size: 0.9em;
    color: #666;
}

.topic-rewards {
    display: flex;
    align-items: center;
}

.topic-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.topic-actions .button {
    padding: 8px 16px;
    font-size: 0.9em;
}

.admin {
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
}

.beneficiary {
    background-color: #f39c12;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
}

.reward {
    background-color: #1abc9c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
}

.reward.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

.view-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.view-switch button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.view-switch button.active {
    background-color: #2c3e50;
}

.list-view {
    display: none;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: #f8f9fa;
}

.list-item-title {
    font-weight: 500;
    color: #2c3e50;
}

.list-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-code {
    font-size: 0.9em;
    color: #666;
    padding: 2px 6px;
    background-color: #f1f3f5;
    border-radius: 3px;
    margin-left: 4px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.icon-button:hover:not(.disabled) {
    background-color: #eee;
}

.icon-button.disabled {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: auto;
}


.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 15px;
}

.form-group:first-child {
    margin-top: 20px;
}

.form-group label {
    flex: 0 0 150px;
    font-weight: bold;
    padding-right: 15px;
}

.form-group input[type="text"],
.form-group select {
    flex: 1;
    padding: 5px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
    max-width: 300px;
}

.telegram-button {
    margin-left: 10px; /* Adjust this value as needed */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 12px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.wallet-info {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin-left: 10px;
}

/* Contributions Modal Styles */
.modal-contributions {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-contributions .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-contributions .modal-header-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.modal-contributions .modal-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-contributions .modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.modal-contributions .modal-body {
    padding: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-contributions .table-responsive {
    margin: 0;
    overflow-x: auto;
}

.contributions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1;
}

.contributions-table thead th {
    background-color: #2980b9;
    color: white;
    font-weight: 600;
    padding: 4px 6px;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    position: relative;
    text-align: left;
    white-space: nowrap;
}

.contributions-table thead th:hover {
    background-color: #3498db;
}

.contributions-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    white-space: nowrap;
}

.contributions-table tr:hover {
    background-color: #f8f9fa;
}

.contributions-table tr.selected {
    background-color: #e3f2fd;
}

.contributions-table th:nth-child(1) { /* Handle */
    width: 80px;
}

.contributions-table th:nth-child(2) { /* Name */
    width: 100px;
}

.contributions-table th:nth-child(3), /* Score */
.contributions-table td:nth-child(3) {
    text-align: right;
    width: 60px;
}

.contributions-table th:nth-child(4), /* Rewards */
.contributions-table td:nth-child(4) {
    text-align: right;
    width: 80px;
}

.contributions-table th.sort-asc::after {
    content: " ▲";
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

.contributions-table th.sort-desc::after {
    content: " ▼";
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

.contributions-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.contributions-close-btn:hover {
    color: #343a40;
}

.contribution-counter {
    font-size: 0.9rem;
    color: #6c757d;
}

.topics-table th.col-contributions,
.topics-table td.col-contributions {
    text-align: center;
    width: 80px;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 1rem;
    background-color: #fff;
}

.dashboard-title {
    text-align: center;
    color: #2980b9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 10px;
    margin-top: 15px;
}

.dashboard-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard-section h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.dashboard-button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 180px;
}

.dashboard-button:hover {
    background-color: #3498db;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* Topics Management Table Styles */
.topics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-top: 1rem;
    table-layout: fixed;
}

.topics-table thead th {
    position: sticky;
    top: 0;
    background-color: #2980b9;
    color: white;
    z-index: 1;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    padding: 8px 3px;
}

.topics-table tbody td {
    padding: 4px 3px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column widths */
.topics-table th.col-category,
.topics-table td.col-category {
    width: 15%;
}

.topics-table th.col-project,
.topics-table td.col-project {
    width: 15%;
}

.topics-table th.col-title,
.topics-table td.col-title {
    width: 25%;
}

.topics-table th.col-type,
.topics-table td.col-type {
    width: 12%;
}

.topics-table th.col-mode,
.topics-table td.col-mode {
    width: 10%;
}

.topics-table th.col-status,
.topics-table td.col-status {
    width: 15%;
}

.topics-table th.col-contributions,
.topics-table td.col-contributions {
    width: 80px;
    text-align: center;
}

.status-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-text {
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 2px;
}

.action-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.action-btn.accept-btn {
    color: #28a745;
}

.action-btn.reject-btn {
    color: #dc3545;
}

.action-btn.delete-btn {
    color: #6c757d;
}

.action-btn.restore-btn {
    color: #17a2b8;
}

/* Status colors */
.status-proposed {
    color: #2980b9;
    font-weight: 500;
}

.status-accepted {
    color: #28a745;
    font-weight: 500;
}

.status-rejected {
    color: #dc3545;
    font-weight: 500;
}

/* Success feedback animation */
@keyframes successFeedback {
    0% {
        background-color: transparent;
    }
    30% {
        background-color: rgba(40, 167, 69, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

.edit-success {
    animation: successFeedback 1.5s ease-out;
}

.topics-table .edit-select,
.topics-table .edit-input {
    width: 100%;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.875rem;
    height: 24px;
    background-color: white;
    transition: border-color 0.2s ease-in-out;
}

.topics-table .edit-select:focus,
.topics-table .edit-input:focus {
    border-color: #2980b9;
    outline: none;
}

/* Prize Generation Page Styles */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.selection-column {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 10px 8px 10px;
}

.selection-column h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.selection-column select {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.info-box {
    margin-top: 5px;
}

.info-table,
.compact-info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td,
.compact-info-table th,
.compact-info-table td {
    padding: 2px 4px;
    font-size: 0.95em;
    line-height: 1.2;
}

.info-table th,
.compact-info-table th {
    color: #666;
    font-weight: normal;
    text-align: left;
}

.info-table td,
.compact-info-table td {
    text-align: right;
    font-family: monospace;
}

.topics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.topics-table th,
.topics-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.topics-table th {
    background-color: #f8f9fa;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover:not(:disabled) {
    background-color: #0056b3;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.results-section {
    margin-top: 30px;
}

.topic-result {
    margin-bottom: 30px;
}

.topic-result h4 {
    margin-bottom: 10px;
    color: #333;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.results-table th,
.results-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: normal;
}

/* Admin Topics and Categories Table Styles */
.admin-topics-table,
.admin-categories-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-top: 1rem;
    table-layout: fixed;
}

.admin-topics-table thead th,
.admin-categories-table thead th {
    position: sticky;
    top: 0;
    background-color: #2980b9;
    color: white;
    z-index: 1;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    padding: 8px 3px;
    font-size: 12px;
}

.admin-topics-table tbody td,
.admin-categories-table tbody td {
    padding: 4px 3px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.admin-topics-table .edit-select,
.admin-topics-table .edit-input,
.admin-categories-table .edit-input {
    width: 100%;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 12px;
    height: 28px;
    min-height: 28px;
    line-height: 28px;
    box-sizing: border-box;
}

.admin-topics-table .edit-select:focus,
.admin-topics-table .edit-input:focus,
.admin-categories-table .edit-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.admin-topics-table th:last-child,
.admin-topics-table td:last-child,
.admin-categories-table th:last-child,
.admin-categories-table td:last-child {
    text-align: center;
}

.admin-topics-table .action-btn,
.admin-categories-table .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Styles spécifiques pour la description des topics */
.admin-topics-table .description-row {
    background-color: #f8f9fa;
}

.admin-topics-table .description-row td {
    padding: 8px;
    border-bottom: 2px solid #dee2e6;
    max-width: 0;
}

.admin-topics-table .edit-textarea {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 12px;
    min-height: 20px;
    resize: vertical;
    box-sizing: border-box;
    display: block;
    overflow-y: hidden;
    line-height: 1.5;
}

.admin-topics-table .edit-textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Admin container styles */
.admin-container {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-content {
    padding: 0 15px;
}

/* Reward Generation Page Styles */

/* Modal Contribution Styles */
.modal-contribution {
    max-width: 500px;
    margin: auto;
    border-radius: 10px;
    background-color: #fefefe;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 8px 12px;
}
.modal-contribution .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.modal-contribution .modal-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}
.modal-contribution .modal-body {
    padding: 1.5rem;
}
.modal-contribution .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.modal-contribution .form-label {
    font-weight: 600;
    color: #2c3e50;
}
.modal-contribution .form-control {
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
    padding: 8px;
    margin-bottom: 10px;
}
.modal-contribution .btn {
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
}

.contribution-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    line-height: 1;
    width: 40px;
    height: 40px;
}
.contribution-close-btn:hover {
    color: #343a40;
    background-color: #e9ecef;
}

.modal-contribution form .form-group input[type="text"],
.modal-contribution form .form-group select,
.modal-contribution form .form-group textarea {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

#community_member_suggestions {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
#community_member_suggestions ul {
    border: 1px solid #ccc !important;
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

.input-valid {
    border: 2px solid #28a745 !important;
    background-color: #eafaf1 !important;
}
.input-invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fbeaea !important;
}

.contribution {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contribution-counter {
    margin-left: 10px;
    margin-right: 30px;
    margin-top: 2px;
    font-size: 0.9em;
    color: #666;
}

.letter-large
{
  font-size: 2.7em;
}

.letter-medium 
{
  font-size: 1.6em;
  align-self: center;
}

.blurred 
{
  filter: blur(2px);
}

.project-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.project-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-checkbox input[type="checkbox"] {
  margin: 0;
}

.project-checkbox label {
  font-size: 0.9em;
  cursor: pointer;
}

.project-checkbox:hover {
  background-color: #f5f5f5;
}

.project-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.project-dropdown-button {
  width: 100%;
  padding: 2px 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  height: 28px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-dropdown-content {
  display: none;
  position: fixed;
  background-color: white;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 9999;
}

.project-dropdown-content.show {
  display: block;
}

.project-checkbox {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
}

.project-checkbox:hover {
  background-color: #f5f5f5;
}

.project-checkbox input[type="checkbox"] {
  margin: 0 8px 0 0;
}

.project-checkbox label {
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-projects {
  font-size: 12px;
  color: #666;
}

/* Topic Project Link */
.topic-project-link {
    margin-top: 1em;
    padding: 0.5em;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Styles pour le tableau des projets */
.compact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.85em;
}

.compact-table .contributions-flex {
  justify-content: flex-start;
}

.compact-table th,
.compact-table td {
  padding: 0.5em;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.compact-table th {
  font-weight: bold;
  color: #666;
}

.compact-table .col-project {
  width: 40%;
}

.compact-table .col-contributions {
  width: 40%;
}

.compact-table .col-reward {
  width: 20%;
  text-align: center;
}

.contribution-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.contribution-count {
    min-width: 2em;
    text-align: right;
}

.contribution-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contribution-block {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem;
    transition: background-color 0.2s;
}

.contribution-block:hover {
    background-color: #f8f9fa;
}

.contribution-block.selected {
    background-color: #e3f2fd;
    border-color: #2980b9;
}

.contribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.contribution-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-name {
    font-weight: bold;
    color: #2980b9;
}

.member-handle {
    color: #666;
    font-size: 0.9em;
}

.contribution-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.score {
    font-weight: bold;
    color: #28a745;
}

.reward {
    background-color: #1abc9c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.reward.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

.contribution-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contribution-content h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.contribution-content p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
    white-space: pre-wrap;
}

.no-contributions {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.rating-stars.average {
  font-size: 1rem;
}

.rating-stars.vote {
  font-size: 1.8rem;
  margin-top: 1rem;
}

.rating-star {
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s;
}

.rating-star.average {
  color: #ffd700;
}

.rating-star.vote {
  cursor: pointer;
}

.rating-star.vote:hover,
.rating-star.vote:hover ~ .rating-star.vote {
  color: #ffd700;
}

.rating-star.vote.active {
  color: #ffd700;
}

.rating-info {
  font-size: 0.9em;
  color: #666;
  margin-left: 0.5rem;
}

.vote-invitation {
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.9em;
}

.vote-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.vote-invitation {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    font-size: 0.9em;
    white-space: nowrap;
    line-height: 1.8rem;
}

.rating-stars.vote {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.rating-stars.average {
    font-size: 1rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.rating-star.average {
    color: #ddd;
}

.rating-star.average.active {
    color: #ffd700;
}

/* Styles pour la modale des contributions */
.modal-contributions .topic-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.modal-contributions .form-group {
    margin-bottom: 20px;
}

.modal-contributions .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-contributions .form-group input,
.modal-contributions .form-group select,
.modal-contributions .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-contributions .form-group textarea {
    resize: vertical;
}

.modal-contributions .form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.modal-contributions .button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.modal-contributions .button.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-contributions .button.delete {
    background-color: #dc3545;
    color: white;
}

.modal-contributions .button.delete:hover {
    background-color: #c82333;
}

.success-message,
.error-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Import Contributions Styles */
.preview-table 
{
  margin: 10px 0;
  max-height: 250px;
  overflow-y: auto;
}

.preview-table table 
{
  width: 100%;
  border-collapse: collapse;
}

.preview-table th,
.preview-table td 
{
  padding: 4px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.85em;
  line-height: 1.2;
}

.preview-table th 
{
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
}

.preview-table tr:nth-child(even) 
{
  background-color: #f9f9f9;
}

.file-upload 
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.file-input 
{
  flex: 1;
  min-width: 300px;
}

.file-info 
{
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.file-info p 
{
  margin: 3px 0;
  display: flex;
  justify-content: space-between;
}

.file-name 
{
  flex: 1;
}

.network-name 
{
  text-align: right;
}

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

.form-row .form-group 
{
  flex: 1;
  margin-bottom: 0;
}

/* Styles pour le tableau des propositions */
.proposals-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.85em;
}

.proposals-table th,
.proposals-table td {
  padding: 0.5em;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.proposals-table th, .proposals-table thead th {
  vertical-align: middle !important;
  background-color: transparent;
  color: #333;
  font-weight: bold;
  font-size: 1em;
  border-bottom: 2px solid #e0e0e0;
  padding: 8px 10px;
  height: 38px;
}

.proposals-table td {
  padding: 6px 10px;
  font-size: 0.92em;
  height: 32px;
}

.proposals-table tr {
  min-height: 32px;
}

.proposals-table .col-category,
.proposals-table .col-topic,
.proposals-table .col-vote {
  vertical-align: top;
}

.proposals-table .col-category {
  width: 20%;
}

.proposals-table .col-topic {
  width: 22%;
}

.proposals-table .col-vote {
  width: 5%;
  text-align: center;
}

.proposals-table .col-project {
  width: 10%; 
}

.proposals-table .col-actions {
  width: 20%;
  text-align: right;
}

.proposals-table .icon-button {
  margin: 0 0.2em;
}

.project-description {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
    white-space: pre-wrap;
}

.contributions-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.contributions-count {
  min-width: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.contributions-icon {
  display: flex;
  align-items: center;
}

.proposals-table .col-reward {
  text-align: center;
  vertical-align: middle;
  width: 120px;
}

.vote-result
{
  font-weight: bold !important;
}

.vote-for
{
  color: #28a745 !important;
  font-weight: bold !important;
}

.vote-against
{
  color: #dc3545 !important;
  font-weight: bold !important;
}

.vote-abstain
{
  color: #6c757d !important;
  font-weight: bold !important;
}

.vote-for-icon
{
  font-size: 1rem;
  color: #28a745 !important;
  font-weight: bold !important;
}

.vote-against-icon
{
  font-size: 1rem;
  color: #dc3545 !important;
  font-weight: bold !important;
}

.vote-abstain-icon
{
  font-size: 1rem;
  color: #6c757d !important;
  font-weight: bold !important;
}

.vote-progress-bar {
  display: flex;
  width: 200px;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.vote-progress-against {
  background-color: #ff4d4d;
  height: 100%;
}

.vote-progress-abstain {
  background-color: #808080;
  height: 100%;
}

.vote-progress-for {
  background-color: #4CAF50;
  height: 100%;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 0.9em;
}

.admin-users-table th,
.admin-users-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-users-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  padding: 6px 8px;
}

.admin-users-table tr:hover {
  background-color: #f8f9fa;
}

.admin-users-table .editable {
  cursor: pointer;
}

.admin-users-table .editable:hover {
  background-color: #f8f9fa;
}

.admin-users-table .editable input,
.admin-users-table .editable select {
  width: 100%;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.admin-users-table .action-buttons {
  display: table-cell;
  vertical-align: top;
  text-align: left;
  width: 80px;
  padding-top: 10px;
}

.admin-users-table .action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  min-width: 60px;
}

.admin-users-table .edit-btn {
  background-color: #3498db;
  color: white;
}

.admin-users-table .edit-btn:hover {
  background-color: #2980b9;
}

.admin-users-table .delete-btn {
  background-color: #e74c3c;
  color: white;
}

.admin-users-table .delete-btn:hover {
  background-color: #c0392b;
}

.admin-users-table .network-cell {
    padding: 2px 2px 2px 8px;
    font-size: 0.85em;
    color: #666;
}

.admin-users-table .network-row td {
    padding: 2px 2px 2px 8px;
    font-size: 0.85em;
    color: #666;
}

.admin-users-table .network-row:hover td {
  padding: 2px 2px;
  background-color: #f8f9fa;
}

.admin-users-table td:first-child,
.admin-users-table td:nth-child(2),
.admin-users-table td:nth-child(3),
.admin-users-table td:nth-child(4) {
    vertical-align: top;
    padding-top: 2px;
}

.admin-users-table td:nth-child(5) {
    vertical-align: top;
    padding-top: 2px;
    text-align: center;
    width: 60px;
    padding: 0px;
}

.admin-users-table td:nth-child(5) span {
    font-size: 1.5em;
}

.admin-users-table .editable.edit-success {
    background-color: rgba(40, 167, 69, 0.2);
    transition: background-color 0.3s ease;
}

.filter-form {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-group input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #2c3e50;
}

.filter-group input[type="checkbox"] {
  margin: 0;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

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