:root {
    --primary-color: #021BB0;
    --background-light: #f9f9f9;
    --text-color: #021BB0;
    --text-light: white;
    --border-radius: 10px;
    --transition-speed: 0.4s;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: white;
}


.top-bar {
    width: 100%;
    height: 40px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    color: var(--text-light);
    font-size: 14px;
}

.top-bar .left,
.top-bar .right {
    display: flex;
    align-items: center;
}

.top-bar .time {
    font-size: 18px;
    font-weight: bold;
}


.sidebar {
    width: 80px;
    height: calc(100vh - 40px);
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    position: fixed;
    left: 0;
    top: 40px;
    transition: width var(--transition-speed) ease-in-out;
}


.btn {
    width: 60px;
    height: 60px;
    margin: 10px 0;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
}

.btn .icon i {
    color: var(--text-light);
    font-size: 28px;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn:hover .icon i {
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.btn.active {
    background-color: white;
    width: 100px;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn.active .icon i {
    color: var(--primary-color) !important;
    transform: scale(1.2);
}


main {
    margin-left: 100px;
    padding: 20px;
    flex: 1;
    transition: margin-left var(--transition-speed) ease-in-out;
}


.section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.title {
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
}

.blue-line {
    border: none;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px 0;
}


.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group.small {
    width: 80px;
}

.form-group textarea {
    height: 100px;
    resize: none;
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}


label {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}


.form-control {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--background-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(2, 27, 176, 0.3);
}


@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .btn {
        width: 50px;
        height: 50px;
    }

    main {
        margin-left: 80px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 50px;
    }

    .btn {
        width: 40px;
        height: 40px;
    }

    main {
        margin-left: 60px;
    }

    .title {
        font-size: 20px;
    }
}

.bilan-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-action .icon {
    margin-right: 8px;
}

.submit {
    background-color: var(--primary-color);
    color: white;
}

.submit:hover {
    background-color: rgba(2, 27, 176, 0.3);
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.stop {
    background-color: #dc3545;
    color: white;
}

.stop:hover {
    background-color: #a71d2a;
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}


.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    display: none;
    z-index: 1000;
}
.success {
    background-color: #28a745;
}
.error {
    background-color: #dc3545;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}