/* Global Styles */
body {
    background-color: #FBEFEF;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #F4F4F4;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

header a {
    text-decoration: none;
    font-size: 18px;
    margin-left: 15px;
    color: #333;
}

header a:hover {
    color: #5a6268;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.logout-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.logout-button:hover {
    background-color: #333;
}

/* Centered Content Wrapper */
.center-content {
    max-width: 600px;
    margin: 80px auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background-color: #000;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #333;
}

/* Forms */
form {
    margin-top: 20px;
    text-align: left;
}

form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

form button {
    width: 40%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

form button:hover {
    background-color: #333;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #fbe9e7;
}

.sidebar {
    width: 250px;
    background-color: #3e2723;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-main {
    flex-grow: 1;
    padding: 40px;
}

/* Sidebar Sections */
.menu, .project-list {
    list-style: none;
    padding: 0;
}

.menu li, .project {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu li a, .project a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.project.active, .menu li a:hover {
    background-color: #6d4c41;
}

/* Enhanced Sidebar Divider */
.sidebar-divider {
    height: 2px;  /* Increased thickness */
    background-color: #ffab91;  /* Adjusted color for better contrast */
    margin: 15px 0;
}

/* Dashboard Content */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.quickbooks-button {
    margin-left: auto;
}

.section-divider {
    margin: 20px 0;
    border: 0;
    height: 1px;
    background-color: #3e2723;
}

.hours-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.hours-summary {
    font-size: 18px;
}

.missing-hours {
    color: #d32f2f;
}

.ctmm-estimate {
    width: 50%;
    padding: 20px;
    border: 1px solid #3e2723;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
}

/* Metrics */
.metrics-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    flex: 1;
    padding: 15px;
    border: 1px solid #3e2723;
    border-radius: 10px;
    background-color: #fff;
}

/* Company Info */
.company-info {
    max-width: 600px;
    margin: 80px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.company-info h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.show-more {
    text-align: right;
    color: #3e2723;
    text-decoration: none;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.add-button {
    background-color: #ffab91;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 18px;
    color: #3e2723;
    cursor: pointer;
    text-align: center;
    line-height: 25px;
    padding: 0;
    margin-left: auto; /* Ajout pour aligner le bouton à droite */
}

.add-button:hover {
    background-color: #ff7043;
}

/* Styles pour le textarea */
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: none;  /* Empêche le redimensionnement */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #3e2723;
    outline: none;
}

/* Styles pour le checkbox */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #ff7043; /* Change la couleur du checkbox */
    cursor: pointer;
}

/* Alignement du label avec le checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-container label {
    font-size: 16px;
    margin-left: 5px;
}


.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #fbe9e7;
}

.sidebar {
    width: 250px;
    background-color: #3e2723;
    color: #fff;
    padding: 20px;
}

.dashboard-main {
    flex-grow: 1;
    padding: 40px;
}

.project-detail .top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-detail h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.edit-button {
    background-color: #ffab91;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #3e2723;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: #ff7043;
}

.section-divider {
    margin: 20px 0;
    border: 0;
    height: 1px;
    background-color: #3e2723;
}

.description-section {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Employees Page */
.employees-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.employees-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-employee-button {
    background-color: #ff7043;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    text-align: center;
    line-height: 35px;
    transition: background-color 0.3s;
}

.add-employee-button:hover {
    background-color: #ffab91;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.employee-table tr:hover {
    background-color: #f1f1f1;
}

.employee-table a {
    text-decoration: none;
    color: #3e2723;
    font-weight: bold;
}

.employee-table a:hover {
    text-decoration: underline;
}


/* Style pour le dropdown */
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #333;
}

/* Icône pour le dropdown (facultatif) */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    padding-right: 40px;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    pointer-events: none;
}

.week-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

.timesheet-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.weekly-total {
    background-color: #e0f7fa;
}


.btn-black {
    display: inline-block;
    background-color: #000; /* Couleur noire */
    color: #fff; /* Couleur du texte blanche */
    font-size: 1rem; /* Taille de la police */
    font-weight: bold; /* Texte en gras */
    text-align: center; /* Centrer le texte */
    padding: 10px 20px; /* Marges intérieures pour rendre le bouton plus grand */
    border-radius: 5px; /* Coins arrondis */
    text-decoration: none; /* Supprime le soulignement */
    border: none; /* Pas de bordure */
    cursor: pointer; /* Curseur pointeur au survol */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animation fluide au survol */
}

.btn-black:hover {
    background-color: #333; /* Couleur légèrement plus claire au survol */
    transform: scale(1.05); /* Effet de zoom léger au survol */
}

.btn-black:active {
    background-color: #111; /* Couleur encore plus sombre lors du clic */
    transform: scale(0.95); /* Légère réduction lors du clic */
}

.requirement-list {
    list-style: none;
    padding: 0;
}

.requirement-list li {
    margin: 10px 0;
}

.requirement-list li a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.requirement-detail {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.requirement-detail h3 {
    margin-top: 0;
}

.requirement-detail ul {
    list-style: none;
    padding: 0;
}

.contract-missing, .status-incomplete {
    color: red;
    font-weight: bold;
}

.contract-pending {
    color: orange;
    font-weight: bold;
}

.contract-approved, .status-complete {
    color: green;
    font-weight: bold;
}

.contract-rejected {
    color: purple;
    font-weight: bold;
}

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.requirement-description {
    margin-bottom: 20px;
}

.requirement-status {
    margin-top: 30px;
}

.requirement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.requirement-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.flex-class{
    display: flex;
    flex-direction: column;
}

.btn-primary{
    text-overflow: auto;
}

.reason-input{
    max-width: 60%;
    max-height:20px;
    overflow: hidden;
    margin-top: -10px;
    font-size: 12px;
}

.btn-danger{
    margin-top: -8px;
    width: 100px;
    max-height: 42.5px;
    min-width: 100px;
}
.btn-success{
    width: 100px;
    max-height: 42.5px;
    min-width: 100px;
}

.reject-form{
    display: flex;
    gap: 8px;
}
