/* Reset some basic styles */
body, h1, p, div, input, button, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f9;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table thead {
    background: #2c3e50;
    color: #fff;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    text-transform: uppercase;
}

.table tr:hover {
    background: #f1f1f1;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background: #2c3e50;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #1a242f;
}

input[type="text"], input[type="submit"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type="submit"] {
    background: #2c3e50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="submit"]:hover {
    background: #1a242f;
}

.shoe-container {
    position: relative;
    display: inline-block;
    margin: 20px;
    transition: transform 0.3s ease;
}

.shoe-container:hover {
    transform: scale(1.05);
}

.shoe-container img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.shoe-container img:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.delete-cross {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-cross:hover {
    color: red;
}

/* Styles pour la fenêtre modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Styles pour l'image en grand format */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

#imageModal .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#imageModal .modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

#imageModal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

#imageModal .close:hover,
#imageModal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    #imageModal .modal-content {
        width: 100%;
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .table th, .table td {
        padding: 5px;
    }

    .button, input[type="submit"] {
        width: 100%;
        padding: 10px 0;
    }

    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .shoe-container img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .shoe-container img {
        width: 60px;
    }
}
