/* css pft admin */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: "Google Sans Code", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: #2c3e50;
}

/* ------------------ titre de la page -------------------- */
h2 {
    font-size: 3em;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, #CC0303, #ff4444);
    border-radius: 3px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* conteneur de formulaire */
form {
    background: white;
    padding: 60px 70px;
    border-radius: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

form:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* labels de formulaire */
label {
    display: block;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #34495e;
    font-weight: 500;
}

label:has(input[type="text"]) {
    margin-bottom: 35px;
}

/* Label text above inputs */
label > br:first-of-type {
    margin-bottom: 10px;
}

/* inputs  */
input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    margin-top: 10px;
    border: 2px solid #e8ecf1;
    border-radius: 15px;
    font-family: "Google Sans Code", sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
}

input[type="text"]:focus {
    outline: none;
    border-color: #CC0303;
    background: white;
    box-shadow: 0 0 0 4px rgba(204, 3, 3, 0.1);
    transform: translateY(-2px);
}

input[type="text"]:hover {
    border-color: #CC0303;
}

/* checkboxs */
input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #CC0303;
    vertical-align: middle;
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 2px solid #e8ecf1;
    background: #f8f9fa;
    font-size: 1.05em;
}

label:has(input[type="checkbox"]):hover {
    background: rgba(204, 3, 3, 0.05);
    border-color: rgba(204, 3, 3, 0.3);
    transform: translateX(5px);
}

label:has(input[type="checkbox"]:checked) {
    background: rgba(204, 3, 3, 0.08);
    border-color: #CC0303;
}

/* bouton de submit */
button[type="submit"] {
    width: 100%;
    padding: 20px;
    margin-top: 40px;
    border: none;
    background: linear-gradient(135deg, #CC0303 0%, #ff4444 100%);
    color: white;
    font-weight: 700;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 15px;
    font-family: "Google Sans Code", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(204, 3, 3, 0.35);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
    width: 400px;
    height: 400px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #990202 0%, #CC0303 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(204, 3, 3, 0.45);
}

button[type="submit"]:active {
    transform: translateY(-2px);
}

/* back link */
a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px 30px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8ecf1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

a::before {
    content: '←';
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

a:hover {
    background: #CC0303;
    color: white;
    border-color: #CC0303;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 3, 3, 0.25);
}

a:hover::before {
    transform: translateX(-5px);
}

/* responsive etc */
@media screen and (max-width: 768px) {
    body {
        padding: 40px 15px;
    }
    
    h2 {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
    
    h2::after {
        width: 120px;
        height: 4px;
    }
    
    form {
        padding: 40px 35px;
        border-radius: 25px;
    }
    
    label {
        font-size: 1em;
    }
    
    input[type="text"] {
        padding: 14px 18px;
        font-size: 0.95em;
    }
    
    label:has(input[type="checkbox"]) {
        padding: 14px 18px;
        font-size: 1em;
    }
    
    button[type="submit"] {
        padding: 18px;
        font-size: 1.2em;
    }
    
    a {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    h2::after {
        width: 100px;
        height: 3px;
    }
    
    form {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    label {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    
    input[type="text"] {
        padding: 12px 16px;
    }
    
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    label:has(input[type="checkbox"]) {
        padding: 12px 16px;
    }
    
    button[type="submit"] {
        padding: 16px;
        font-size: 1.1em;
        margin-top: 30px;
    }
    
    a {
        padding: 10px 20px;
        font-size: 0.95em;
        margin-top: 25px;
    }
}

html {
    scroll-behavior: smooth;
}

/* scrollbar trop stylée de la mort qui tue. [insérer emoji lunettes de soleil] */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CC0303, #ff4444);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #990202, #CC0303);
}

/*  */
input:required:invalid {
    border-color: #e8ecf1;
}

input:required:valid {
    border-color: #27ae60;
}

input:required:invalid:focus {
    border-color: #CC0303;
}

/* chargement */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

button[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(204, 3, 3, 0.35);
}

/* succès */
.success-message {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    border: 2px solid #27ae60;
    color: #27ae60;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* message d'erreur */
.error-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;

/* ========================= PFT FORM CSS - COMPLETE STYLESHEET ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: "Google Sans Code", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: #2c3e50;
}

/* ========================= PAGE TITLE ========================= */
h2 {
    font-size: 3em;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, #CC0303, #ff4444);
    border-radius: 3px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= FORM CONTAINER ========================= */
form {
    background: white;
    padding: 60px 70px;
    border-radius: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

form:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= FORM LABELS ========================= */
label {
    display: block;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #34495e;
    font-weight: 500;
}

label:has(input[type="text"]) {
    margin-bottom: 35px;
}

/* Label text above inputs */
label > br:first-of-type {
    margin-bottom: 10px;
}

/* ========================= TEXT INPUTS ========================= */
input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    margin-top: 10px;
    border: 2px solid #e8ecf1;
    border-radius: 15px;
    font-family: "Google Sans Code", sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
}

input[type="text"]:focus {
    outline: none;
    border-color: #CC0303;
    background: white;
    box-shadow: 0 0 0 4px rgba(204, 3, 3, 0.1);
    transform: translateY(-2px);
}

input[type="text"]:hover {
    border-color: #CC0303;
}

/* ========================= CHECKBOX STYLING ========================= */
input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #CC0303;
    vertical-align: middle;
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 2px solid #e8ecf1;
    background: #f8f9fa;
    font-size: 1.05em;
}

label:has(input[type="checkbox"]):hover {
    background: rgba(204, 3, 3, 0.05);
    border-color: rgba(204, 3, 3, 0.3);
    transform: translateX(5px);
}

label:has(input[type="checkbox"]:checked) {
    background: rgba(204, 3, 3, 0.08);
    border-color: #CC0303;
}

/* ========================= SUBMIT BUTTON ========================= */
button[type="submit"] {
    width: 100%;
    padding: 20px;
    margin-top: 40px;
    border: none;
    background: linear-gradient(135deg, #CC0303 0%, #ff4444 100%);
    color: white;
    font-weight: 700;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 15px;
    font-family: "Google Sans Code", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(204, 3, 3, 0.35);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
    width: 400px;
    height: 400px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #990202 0%, #CC0303 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(204, 3, 3, 0.45);
}

button[type="submit"]:active {
    transform: translateY(-2px);
}

/* ========================= BACK LINK ========================= */
a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px 30px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8ecf1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

a::before {
    content: '←';
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

a:hover {
    background: #CC0303;
    color: white;
    border-color: #CC0303;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 3, 3, 0.25);
}

a:hover::before {
    transform: translateX(-5px);
}

/* ========================= RESPONSIVE DESIGN ========================= */
@media screen and (max-width: 768px) {
    body {
        padding: 40px 15px;
    }
    
    h2 {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
    
    h2::after {
        width: 120px;
        height: 4px;
    }
    
    form {
        padding: 40px 35px;
        border-radius: 25px;
    }
    
    label {
        font-size: 1em;
    }
    
    input[type="text"] {
        padding: 14px 18px;
        font-size: 0.95em;
    }
    
    label:has(input[type="checkbox"]) {
        padding: 14px 18px;
        font-size: 1em;
    }
    
    button[type="submit"] {
        padding: 18px;
        font-size: 1.2em;
    }
    
    a {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    h2::after {
        width: 100px;
        height: 3px;
    }
    
    form {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    label {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    
    input[type="text"] {
        padding: 12px 16px;
    }
    
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    label:has(input[type="checkbox"]) {
        padding: 12px 16px;
    }
    
    button[type="submit"] {
        padding: 16px;
        font-size: 1.1em;
        margin-top: 30px;
    }
    
    a {
        padding: 10px 20px;
        font-size: 0.95em;
        margin-top: 25px;
    }
}

/* ========================= SMOOTH SCROLLING ========================= */
html {
    scroll-behavior: smooth;
}

/* ========================= CUSTOM SCROLLBAR ========================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CC0303, #ff4444);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #990202, #CC0303);
}

/* ========================= FORM VALIDATION STATES ========================= */
input:required:invalid {
    border-color: #e8ecf1;
}

input:required:valid {
    border-color: #27ae60;
}

input:required:invalid:focus {
    border-color: #CC0303;
}

/* ========================= LOADING STATE ========================= */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

button[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(204, 3, 3, 0.35);
}

/* ========================= SUCCESS MESSAGE STYLING ========================= */
.success-message {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    border: 2px solid #27ae60;
    color: #27ae60;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* ========================= ERROR MESSAGE STYLING ========================= */
.error-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* table  */
table {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

thead {
    background: linear-gradient(135deg, #CC0303 0%, #ff4444 100%);
}

thead tr {
    color: white;
}

thead th {
    padding: 20px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e8ecf1;
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.03), rgba(255, 68, 68, 0.03));
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 18px 25px;
    color: #34495e;
    font-size: 1em;
    vertical-align: middle;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.05), rgba(255, 68, 68, 0.05));
}

tbody td a,
tbody td button {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: "Google Sans Code", sans-serif;
}

tbody td a.btn-view,
tbody td button.btn-view {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

tbody td a.btn-view:hover,
tbody td button.btn-view:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

tbody td a.btn-edit,
tbody td button.btn-edit {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

tbody td a.btn-edit:hover,
tbody td button.btn-edit:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

tbody td a.btn-delete,
tbody td button.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

tbody td a.btn-delete:hover,
tbody td button.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

tbody td a:not([class]),
tbody td button:not([class]) {
    background: linear-gradient(135deg, #CC0303, #ff4444);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 3, 3, 0.3);
}

tbody td a:not([class]):hover,
tbody td button:not([class]):hover {
    background: linear-gradient(135deg, #990202, #CC0303);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 3, 3, 0.4);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(46, 204, 113, 0.15));
    color: #27ae60;
    border: 1px solid #27ae60;
}

.badge-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(241, 196, 15, 0.15));
    color: #f39c12;
    border: 1px solid #f39c12;
}

.badge-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.15));
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.15), rgba(255, 68, 68, 0.15));
    color: #CC0303;
    border: 1px solid #CC0303;
}

tbody tr.empty-state td {
    padding: 60px 25px;
    text-align: center;
    color: #95a5a6;
    font-size: 1.2em;
    font-style: italic;
}

.table-container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.table-header h2 {
    margin: 0;
    font-size: 2.5em;
}

.table-header h2::after {
    display: none;
}

.btn-add {
    padding: 12px 25px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add::before {
    content: '+';
    font-size: 1.4em;
    font-weight: bold;
}

.btn-add:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.4);
}

@media screen and (max-width: 1024px) {
    table {
        border-radius: 20px;
    }
    
    thead th,
    tbody td {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    
    thead th {
        font-size: 1em;
    }
}

@media screen and (max-width: 768px) {
    .table-container {
        padding: 0 15px;
    }
    
    table {
        border-radius: 15px;
    }
    
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tbody tr {
        margin-bottom: 20px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    
    tbody td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: 600;
        color: #CC0303;
    }
    
    tbody td a,
    tbody td button {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-header h2 {
        font-size: 2em;
        text-align: center;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    thead th,
    tbody td {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .table-header h2 {
        font-size: 1.8em;
    }
    
    tbody td {
        padding-left: 45%;
    }
}
