*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}
body{
    font-family: Arial, Helvetica, sans-serif;
}
:root {
    --color1: #ffffff;
    --color2: #333333;
    --color-hover: #ed1c24;
    --bg-color: #f5f5f5;
    --menu-bg: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease-in-out;
    --icon-size: 1.25rem;
    --icon-color: #666666;
    --popup-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --popup-bg: #ffffff;
    --popup-hover: rgba(237, 28, 36, 0.05);
    --popup-border: rgba(0, 0, 0, 0.05);
}
.top-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    /* border-bottom: 1px solid #ccc; */
    font-family: sans-serif;
    position: fixed;
    top: 0;
    /* left: 16%; */
    width: 98%;
    height: 42px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    z-index: 500;
}
.bx-cloud-upload {
    font-size: 30px;
    color: var(--color-hover);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}
.top-bar  .bx-cog{
    font-size: 18px;
    color: var(--color-hover);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}
.bx-question-mark{
    font-size: 18px;
    color: var(--color-hover);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    border: 1px solid #ed1c24;
    border-radius: 100%;

}

.left-section {
    display: flex;
    align-items: center;
    margin-left: 16%;
}

.add-btn {
    font-size: 24px;
    color: var(--color-hover);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    width: 300px;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--bg-color);
    color: var(--color2);
    outline: none;
}

.search-input:focus {
    border-color: #ce030351;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
    background-color: var(--color1);
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}
.right-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4285f4;
}

.counter {
    font-weight: bold;
}

.icon {
    font-size: 18px;
    cursor: pointer;
}

.username {
    font-weight: 500;
}

.company {
    color: #89a3c1;
}

.dashboard-container {
    margin-top: 60px;
    padding: 20px;
    margin-left: 15%;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.card-icon {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 50%;
    margin-right: 15px;
}

.card-icon i {
    font-size: 24px;
    color: var(--color-hover);
}

.card-info h3 {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.card-info p {
    margin: 5px 0 0;
    font-size: 24px;
    font-weight: bold;
}

.card span {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.stats-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.work-orders, .purchase-orders {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 15px auto;
}

.status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.status {
    padding: 5px 10px;
    background: #eee;
    border-radius: 15px;
    font-size: 12px;
}

.equipment-list {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

.equipment-list  h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    /* margin-left: -10px; */
}

.equipment-list  h3 .title{
    font-size: 1em;
    color: #000;
}
.equipment-list h3 span {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.equipment-item {
    border: 1px solid #eee;
    border-radius: 8px;
    /* margin-bottom: 10px; */
    overflow: hidden;
    margin-bottom: 10px;

}

.equipment-header{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
}

.equipment-header input[type="checkbox"] {
    margin-right: 10px;
}

.toggle-details {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
}

.equipment-id {
    font-weight: bold;
    margin-right: 10px;
}

.equipment-info {
    flex: 1;
    color: #444;
}

.status.overdue {
    background: #f8d7da;
    color: #721c24;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.task-count {
    font-size: 14px;
    margin-right: 10px;
}

.new-wo {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.new-wo:hover {
    background: #0056b3;
}

.equipment-details {
    background: #fffbea;
    padding: 10px 20px;
    display: none;
    flex-direction: column;
}

.equipment-details .task {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.due-text {
    color: #cc0000;
}

.chart-content {
    height: 300px;
    /* Ajoutez ici les styles pour votre graphique */
}

.chart-container {
    background: wh;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.chart-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.maintenance-cost {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.maintenance-cost h3 {
    margin: 0;
    color: #333;
}

.maintenance-cost .subtitle {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.maintenance-cost .date-range {
    color: #999;
    font-size: 12px;
    margin-bottom: 20px;
}

.maintenance-cost .chart-wrapper {
    height: 300px;
    width: 100%;
}



.fuel-consumption{
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.fuel-consumption h3 {
    margin: 0;
    color: #333;
}

.fuel-consumption .subtitle {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.fuel-consumption .date-range {
    color: #999;
    font-size: 12px;
    margin-bottom: 20px;
}

.fuel-consumption .chart-wrapper {
    height: 300px;
    width: 100%;
}


.popup-container {
    position: relative;
}

.popup-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: -235px;
    width: 280px;
    background: var(--popup-bg);
    border-radius: 12px;
    box-shadow: var(--popup-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--popup-border);
}

.popup-container:hover .popup-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--popup-border);
    font-weight: 600;
    color: var(--color2);
    font-size: 0.95rem;
}

.popup-list {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.popup-list::-webkit-scrollbar {
    width: 6px;
}

.popup-list::-webkit-scrollbar-track {
    background: transparent;
}

.popup-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.popup-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--color2);
    font-size: 0.9rem;
    transition: var(--transition);
}

.popup-list li a i {
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--icon-color);
    transition: var(--transition);
}

.popup-list li a:hover {
    background: var(--popup-hover);
    color: var(--color-hover);
}

.popup-list li a:hover i {
    color: var(--color-hover);
}

.popup-divider {
    height: 1px;
    background: var(--popup-border);
    margin: 8px 0;
}

/* Calendar */

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.calendar-controls label {
    font-weight: 500;
    color: var(--color2);
}

.calendar-controls select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--color2);
    background: white;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.calendar-controls select:hover {
    border-color: var(--color-hover);
}

.calendar-controls select:focus {
    border-color: var(--color-hover);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

#goToDateBtn {
    background: var(--color-hover);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

#goToDateBtn:hover {
    background: #d41920;
}

/* FullCalendar custom styles */
.fc .fc-button-primary {
    background-color: white !important;
    border-color: var(--border-color) !important;
    color: var(--color2) !important;
}

.fc .fc-button-primary:hover {
    background-color: var(--bg-color) !important;
    border-color: var(--color-hover) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--color-hover) !important;
    border-color: var(--color-hover) !important;
    color: white !important;
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1) !important;
}

.fc .fc-toolbar-title {
    color: var(--color2);
    font-size: 1.2em !important;
}

.fc-day-today {
    background-color: rgba(237, 28, 36, 0.05) !important;
}

.fc-event {
    cursor: pointer;
    transition: transform 0.2s;
}

.fc-event:hover {
    transform: scale(1.02);
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.reports-header h2 {
    font-size: 24px;
    color: var(--color2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-list {
    /* background: white; */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reports-columns {
    display: flex;
    gap: 20px;
}

.reports-column {
    flex: 1;
}

.report-section {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.report-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-section ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var (--color2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.report-section ul li:hover {
    background: var(--popup-hover);
    color: var(--color-hover);
}

.report-section.collapsed ul {
    display: none;
}

.bx-star {
    color: var(--icon-color);
    cursor: pointer;
    transition: var(--transition);
}

.bx-star:hover {
    color: var(--color-hover);
}

.bx-star.active {
    color: var(--color-hover);
}

.favorite .bx-star {
    color: var(--color-hover);
}

.favorites {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
}

.favorites h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.favorites-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--color2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.favorites-list li:hover {
    background: var(--popup-hover);
    color: var(--color-hover);
}