/*
Theme Name: Céline Hourlier Medium
Author: Laurent
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

.register-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.register-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.register-form .form-group {
    margin-bottom: 15px;
}

.register-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}

.register-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.register-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background-color: #005f8d;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.register-intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.input-error {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 4px;
    display: block;
}

.form-group label a {
    color: #3498db;
    text-decoration: underline;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.profile-wrapper {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}

.profile-wrapper h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1em;

}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.btn-update {
    display: block;
    width: 100%;
    padding: 0.8em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.btn-update:hover {
    background-color: #2980b9;
}

.success-message {
    color: green;
    text-align: center;
    margin-bottom: 1em;
    font-weight: bold;
}

.error-message {
    color: red;
    text-align: center;
    font-weight: bold;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1em;
    align-items: center;
    margin-bottom: 1em;
}

.profile-form .form-row label {
    font-weight: 1600;
}

.profile-form .form-row input {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.profile-form .form-row input {
    border: 2px solid red !important;
}

.admin-user-list-page {
    max-width: 1200px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: system-ui, sans-serif;
}

.admin-user-list-page h2 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #222;
}

.admin-user-list-page .user-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5em;
}

.admin-user-list-page .user-grid-header,
.admin-user-list-page .user-grid-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr 1fr 1fr;
    padding: 0.75em;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.admin-user-list-page .user-grid-header {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

.admin-user-list-page .user-grid-row span {
    overflow-wrap: anywhere;
}

.admin-user-list-page .user-grid-header span,
.admin-user-list-page .user-grid-row span {
    padding: 0.5em;
    border-right: 1px solid #ccc;
}

/* Remove border from the last column */
.admin-user-list-page .user-grid-header span:last-child,
.admin-user-list-page .user-grid-row span:last-child {
    border-right: none;
}

.user-search-form {
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;
    justify-content: center;
}

.user-search-form input[type="text"] {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
}

.user-search-form button {
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.user-search-form button:hover {
    background-color: #005a8c;
}

.admin-appointments-page {
    max-width: 1200px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: system-ui, sans-serif;
}

.admin-appointments-page h2 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #222;
}

.admin-appointments-page .appointments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5em;
}

.admin-appointments-page .grid-header,
.admin-appointments-page .grid-row {
    display: grid;
    /* 7 columns: date, hour, service, appointment creation, first name, phone, email, WP user creation */
    grid-template-columns: 1fr 1fr 2fr 2fr 1fr 2fr 2fr 1fr;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 6px;
    align-items: center;
}

.admin-appointments-page .grid-header {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

.admin-appointments-page .grid-row {
    background-color: #fafafa;
}

.admin-appointments-page .grid-row:nth-child(even) {
    background-color: #f0f8ff; /* light blue for alternating rows */
}

.admin-appointments-page .grid-header span,
.admin-appointments-page .grid-row span {
    padding: 0.5em;
    border-right: 1px solid #ccc;
    overflow-wrap: anywhere;
}

/* Remove border from the last column */
.admin-appointments-page .grid-header span:last-child,
.admin-appointments-page .grid-row span:last-child {
    border-right: none;
}

/*body {
    background-color: pink !important;
}
*/

