/* Importer la police 'Inter' depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Définir la police de base pour le corps du document */
body {
    font-family: 'Inter', sans-serif;
}

/* Styles pour la page d'import CSV */
.import-page .import-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.import-page h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.import-page label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.import-page input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.import-page button {
    width: 100%;
    padding: 10px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.import-page button:hover {
    background-color: #005bb5;
}

.error, .success {
    text-align: center;
    margin-bottom: 20px;
}

.error {
    color: #ff6f61;
}

.success {
    color: #4caf50;
}

/* Styles généraux pour le formulaire de recherche de livres */
.scan-item-container {
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-container input[type="text"],
.form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.form-container button:hover {
    background-color: #005bb5;
}

.error {
    color: #ff6f61;
    text-align: center;
    margin-bottom: 20px;
}

.results {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #0073e6;
    color: white;
    font-weight: 600;
}

/* Styles spécifiques pour le tableau de bord */
.dashboard-container {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 350px;
    background-color: #333;
    color: white;
    padding: 15px;
    box-sizing: border-box;
    font-size: 16px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.submenu {
    margin-left: 15px;
}

/* Styles spécifiques pour la page de connexion */
.login-container {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.login-container button:hover {
    background-color: #005bb5;
}

.error {
    color: #ff6f61;
    text-align: center;
    margin-bottom: 20px;
}

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
