body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Navigation - Updated to match IHM blue */
.navbar {
    background-color: #2874B5;  /* IHM Blue */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    background-color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.navbar-content {
    flex-grow: 1;
}

.navbar h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
}

/* Content area */
.content {
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2874B5;  /* IHM Blue */
}

.total {
    text-align: center;
    font-size: 18px;
    margin: 20px;
    font-weight: bold;
    color: #2874B5;  /* IHM Blue */
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #2874B5;  /* IHM Blue */
    box-shadow: 0 0 5px rgba(40, 116, 181, 0.3);
}

.btn-search {
    padding: 12px 24px;
    white-space: nowrap;
}

.search-results {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 600px;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 80%;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    background-color: white;
}

th {
    background-color: #2874B5;  /* IHM Blue */
    color: white;
    font-weight: bold;
}

/* Edit link styling - Updated to IHM Blue */
.edit-link {
    color: #2874B5;  /* IHM Blue */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.edit-link:hover {
    text-decoration: underline;
    color: #1f5a8f;  /* Darker blue on hover */
}

/* Photo column */
th:first-child, td:first-child {
    text-align: center;
    width: 120px;
}

/* Edit column (second column) */
th:nth-child(2), td:nth-child(2) {
    text-align: center;
    width: 50px;
}

/* Member photo styles */
.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2874B5;  /* IHM Blue border */
}

.member-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #2874B5;  /* IHM Blue */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 40px;
    border: 2px solid #1f5a8f;
    margin: 0 auto;
}

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Consistent input styling for ALL input types */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: white;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Focus states for ALL input types */
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #2874B5;  /* IHM Blue */
    box-shadow: 0 0 5px rgba(40, 116, 181, 0.3);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Password container with eye icon */
.password-container {
    position: relative;
}

.password-container input {
    width: 100%;
    padding: 10px;
    padding-right: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.password-container input:focus {
    outline: none;
    border-color: #2874B5;
    box-shadow: 0 0 5px rgba(40, 116, 181, 0.3);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    user-select: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: #999;
    transition: fill 0.2s;
}

.password-toggle:hover svg {
    fill: #2874B5;
}

/* Birthday container with inline age */
.birthday-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.birthday-container input[type="date"] {
    flex: 0 0 auto;
    width: auto;
}

.age-display {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* Section divider */
.section-divider {
    margin: 30px 0 20px 0;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.section-divider h3 {
    margin: 0 0 10px 0;
    color: #2874B5;
    font-size: 1.1em;
}

/* Button styles - Updated to IHM Blue */
.btn {
    background-color: #2874B5;  /* IHM Blue */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1f5a8f;  /* Darker blue on hover */
}

.btn-secondary {
    background-color: #666;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Message styles */
.message {
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 4px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-img {
        height: 50px;
    }

    .navbar h2 {
        font-size: 18px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    table {
        width: 95%;
    }

    .form-container {
        margin: 10px;
        padding: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        text-align: center;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }

    .member-photo,
    .member-photo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .birthday-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .birthday-container input[type="date"] {
        width: 100%;
    }
}
