/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
}

/* ─── Header Inner Wrapper ───────────────────────────────────────────────── */
/* header - REMOVED (now in header.css) */
/* header .header-inner - REMOVED (now in header.css) */

/* ─── Branding (logo + title) ─────────────────────────────────────────────── */
/* .branding - REMOVED (now in header.css) */
/* .branding .logo - REMOVED (now in header.css) */

/* ─── Top Nav Links ───────────────────────────────────────────────────────── */
/* .top-nav - REMOVED (now in header.css) */
/* .top-nav a - REMOVED (now in header.css) */

/* Main Container */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  gap: 30px;
}

/* Shared Card Styles */
.profile-section,
.user-management {
    flex: 0 1 600px;
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.user-management.visible ~ .profile-section,
.profile-section + .user-management.visible {
  flex: 1;
}


.profile-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.profile-section label {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.profile-section input[type="text"],
.profile-section input[type="email"],
.profile-section input[type="password"] {
  font-size: 0.9rem;
  padding: 8px 10px;
  height: 40px;
  margin-bottom: 16px;
}

.profile-section button {
  padding: 10px 16px;
  font-size: 0.9rem;
}


/* Form Styles */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

label span {
    color: #e74c3c;
    margin-left: 3px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    height: 45px;
}

form input:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.user-management {
    display: none;
}

.user-management.visible {
    display: flex;
    flex-direction: column;
}

.user-actions {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    font-size: 0.9rem;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.status.admin, .status.active {
    font-weight: bold;
    color: #27ae60;
}

.status.inactive {
    color: #e74c3c;
}

hr.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* === NEW: Toast Notification Styles === */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 6px;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease;
    z-index: 1000;
}

.toast.show {
    bottom: 30px;
}

.toast.error {
    background-color: #e74c3c;
}

.toast.success {
    background-color: #27ae60;
}

/* === NEW: Confirmation Modal Styles === */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#modalCancelButton {
    background-color: #6c757d;
}

#modalCancelButton:hover {
    background-color: #5a6268;
}
.reset-password-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: normal;
    background-color: #6c757d;
}

.reset-password-btn:hover {
    background-color: #5a6268;
}