body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    width: 80%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    background-color: #333;
    margin: 0 0 20px 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #555;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.alert {
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 3px;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    background-color: #f4f4f4;
}

.devis-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.devis-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 3px;
}

.signature-pad {
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
}

.signature-controls {
    display: flex;
    gap: 10px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 20px;
}

.error {
    color: #721c24;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Drag and Drop Zone */
.drop-zone {
    max-width: 100%;
    height: 150px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: inherit;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    color: #cccccc;
    border: 3px dashed #1976d2;
    border-radius: 10px;
    background-color: #fafafa;
    transition: background-color 0.15s, border-color 0.15s;
    margin-top: 8px;
}

.drop-zone--over {
    border-style: solid;
    background-color: #e3f2fd;
    color: #1976d2;
}

.drop-zone__prompt {
    color: #555;
}

.drop-zone__thumb {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #cccccc;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.drop-zone__thumb::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    font-size: 12px;
    text-align: center;
}