body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 20px;
}

.container_large {
    max-width: 1400px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlighted {
    font-weight: bold;
    color: #fff;
    margin: 2px 0;
    border-radius: 6px;
    padding: 6px 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf {
    background-color: #c8a202;
}

.fx {
    background-color: #b72558;
}

.nom {
    background-color: #199300;
}

.bali {
    background-color: #d30000;
}

/* Le conteneur du lien */
.logo-link {
    display: inline-block;
    margin: 20px; 
    transition: transform 0.2s ease; 
}

.logo-link:hover {
    transform: scale(1.05); 
}


.logo-img {
    height: 120px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.8;
}

.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 20px 40px;
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* FORM ELEMENTS (add page) */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #555;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* BUTTONS */
/* General button styles */
button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Upload button overrides */
button.upload-btn {
    width: auto;           /* auto width for smaller buttons */
    min-width: 60px;
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Delete button overrides */
button.delete-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    width: auto;
    min-width: 80px;
    font-size: 1em;

    /* flex centering */
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #00345a;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.dashboard-card {
    background: #f8fbff;
    border: 1px solid #dce8f5;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #002e53;
}

.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-list a, .dashboard-button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #002e53;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.dashboard-list a:hover, .dashboard-button:hover {
    background: #199300;
    text-decoration: none;
}

.dashboard-text {
    color: #555;
    margin-bottom: 16px;
}

.project-summary {
    background: #f8fbff;
    border: 1px solid #dce8f5;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    color: #555;
}

/* TABLE STYLES (database page) */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 20px;
}

table thead {
    background-color: #002e53;
    color: #fff;
}

table th, table td {
    padding: 8px 10px;
    border: 1px solid #ccc;
    text-align: center;
}

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

/* LINKS */
a {
    color: #0078d7;
    text-decoration: none;
}

.container a,
.container_large a {
    display: inline-block;
    text-align: center;
    margin-top: 20px;
}

a:hover {
    text-decoration: underline;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
