* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
}
.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}
header {
    background: #3498db;
    color: white;
    padding: 20px;
    text-align: center;
}
h1 {
    font-size: 24px;
    margin-bottom: 5px;
}
.card {
    padding: 25px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}
input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background: #2980b9;
}
.btn-delete {
    background: #e74c3c;
}
.btn-delete:hover {
    background: #c0392b;
}
.btn-edit {
    background: #f39c12;
}
.btn-edit:hover {
    background: #d35400;
}
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.error {
    background: #ffecec;
    color: #e74c3c;
    border: 1px solid #f5b7b1;
}
.success {
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #a9dfbf;
}
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}
.links a {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.links a:hover {
    text-decoration: underline;
}
.icon {
    margin-right: 10px;
    font-size: 18px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f8f9fa;
    font-weight: 600;
}
tr:hover {
    background-color: #f5f5f5;
}
.actions {
    display: flex;
    gap: 8px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.close {
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }
    .actions {
        flex-direction: column;
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background-color: #0077ff;
    color: white;
}

.btn-edit:hover {
    background-color: #9ec8f6;
    transform: scale(1.05);
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Style pour les écrans mobiles */
@media (max-width: 768px) {
    .actions {
        flex-direction: row;
    }

    .btn-edit, .btn-delete {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .btn-edit svg, .btn-delete svg {
        width: 14px;
        height: 14px;
    }
}

.modern-menu {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    border: 1px solid #f0f0f0;
}

.modern-menu-header {
    margin-bottom: 20px;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.menu-divider {
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    border-radius: 2px;
}

.modern-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 14px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.modern-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.modern-menu-item:hover {
    background: white;
    border-color: #e3e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
}

.modern-menu-item:hover::before {
    transform: scaleY(1);
}

.modern-menu-item:hover .modern-menu-arrow {
    opacity: 1;
    transform: translateX(0);
}

.modern-menu-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.modern-menu-item:hover .modern-menu-icon {
    transform: rotate(10deg) scale(1.05);
}

.modern-menu-text {
    font-weight: 600;
    font-size: 16px;
    flex-grow: 1;
}

.modern-menu-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #3498db;
    font-weight: bold;
}

/* Style pour les écrans mobiles */
@media (max-width: 768px) {
    .modern-menu {
        padding: 20px;
        border-radius: 16px;
    }

    .modern-menu-item {
        padding: 16px;
    }

    .modern-menu-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 14px;
    }

    .modern-menu-text {
        font-size: 15px;
    }
}

/* SweetAlert2 Customization */
.swal2-popup {
    border-radius: 15px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.swal2-title {
    font-size: 24px !important;
    color: #2c3e50 !important;
}

.swal2-html-container {
    font-size: 16px !important;
    color: #555 !important;
}

.swal2-confirm {
    background-color: #e74c3c !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    background-color: #95a5a6 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #0d6efd;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-full:hover {
    background: #0a58ca;
}