/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    height: 100vh;  /* Ensure full height of the viewport */
    display: flex;
    justify-content: center;  /* Horizontally center */
    align-items: center;  /* Vertically center */
}

.header {
    background-color: #f4f4f4;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.profile {
    display: flex;
    align-items: center;
}

.profile span {
    margin-right: 10px;
}

.logout, .login {
    text-decoration: none;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

.logout:hover, .login:hover {
    background-color: #0056b3;
}

/* Main Content */
.main-content {
    padding: 20px;
}

/* Login Page */
.login-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 340px;
    text-align: center;
}

h2 {
    margin-top: 20px;
    margin-bottom: 50px;
    font-size: 24px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
/*    gap: 5px;*/
}

label {
    font-size: 16px;
    color: #555;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

input:focus {
    border-color: #007BFF;
    outline: none;
}

button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

ul {
    list-style-type: none;  /* Removes the bullets (dots) */
    padding-left: 0;        /* Removes default indentation */
}


.alert-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}

.alert.danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert.error {
    background-color: #ffe791;
    color: #1b1b1b;
}


p {
    margin-top: 15px;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* Center the image in the middle of the screen */
.index-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
}

.main-image {
    width: 300px;  /* You can adjust the size */
    cursor: pointer;
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-container label {
    margin: 0;
}
#show-password {
    width: 25%;
}

.login-image {
    display: block;               /* Makes the image block-level to push other content below it */
    margin: 0 auto;               /* Centers the image horizontally */
    width: 100%;                  /* Makes the image responsive, adjusting to the container's width */
    max-width: 400px;             /* Limits the maximum width of the image */
    height: auto;                 /* Maintains the aspect ratio of the image */
    margin-bottom: 10px;          /* Adds space below the image */
}


/* Form styling */
.post-form {
    display: flex;
    flex-direction: column;
}

.form-container h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

/* Form Styles */
.post-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

textarea,
select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background: #f9f9f9;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.fichier {
    width: 100%;
    padding: 10px;
    border: 1px solid #A7C6ED;
    color: #A7C6ED;
    border-radius: 5px;
    font-size: 1rem;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(167, 198, 237, 0.1);
}

/* Submit Button */
.submit-button {
    background-color: #fff;
    border: 1px solid #A7C6ED;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(167, 198, 237, 0.1);
    color: #A7C6ED;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #45a049;
}
/* Hide the default file input */
input[type="file"] {
    display: none;
}

/* Style the custom file label */
.custom-file-label {
    display: inline-block;
    background-color: #1660e2;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.custom-file-label:hover {
    background-color: #45a049;
}
.tag-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

#tag-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    width: 100%;
}

#tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.tag span {
    margin-right: 8px;
}

.tag .remove-btn {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
}


/* Style the file name display */
#file-chosen {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        padding: 15px;
    }

    .submit-button {
        font-size: 0.9rem;
    }
}
