/* assets/css/style.css */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  min-height: 100vh;
  background-image: url('../images/background.png');
  background-size: cover;        /* Fill screen */
  background-position: center;   /* Center image */
  background-repeat: no-repeat;  /* No tiling */
  background-attachment: fixed;  /* Parallax effect */
    color: #222;
}

h1, h2, h3 {
    color: #1f2933;
    margin-top: 0;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout wrapper for all pages */
.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 24px 28px;
    width: 100%;
    max-width: 700px;
}

.card-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.card-header h2 {
    font-size: 1.5rem;
}

.muted-text {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Forms */
form {
    margin-top: 12px;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.form-group {
    margin-bottom: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Buttons */
button,
input[type="submit"] {
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
        transform 0.05s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
    background-color: #ffffff;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f3f4f6;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f9fafb;
}

/* Links list on dashboard */
.nav-list {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.nav-list li {
    margin-bottom: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #e0e7ff;
    color: #1d4ed8;
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: #f3f4ff;
    border-color: #c7d2fe;
    box-shadow: 0 8px 16px rgba(129, 140, 248, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.nav-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.nav-title {
    font-size: 1rem;
}

/* Messages */
.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Chatbot */
/* Ensure that the chat-box is a flex container */
.chat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align messages to the left */
}

/* Align bot's messages to the left */
.chat-message-bot {
    align-self: flex-start;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 80%;
    box-sizing: border-box;
}

/* Align user's messages to the right */
.chat-message-user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 80%;
    box-sizing: border-box;
}

/* Optional: for the chat input section */
.chat-input-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
/* ============================= */
/* Edit Profile Page Enhancements */
/* ============================= */

/* Form spacing improvement */
form .form-group {
    display: flex;
    flex-direction: column;
}

/* Disabled input style */
input[disabled] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Success message */
.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Form buttons spacing */
.form-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

/* Back link spacing */
.back-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
}
