:root {
    --sidebar-bg: #2c2c2c;
    --sidebar-text: #e0e0e0;
    --sidebar-hover: #383838;
    --header-bg: #ffffff;
    --header-text: #333333;
    --main-bg: #f4f6f8;
    --content-bg: #ffffff;
    --link-color: #007bff;
    --link-hover: #0056b3;
    --toggle-color: #e0e0e0;
    --breadcrumb-text: #666666;
    --btn-bg: #007bff;
    --btn-text: #ffffff;
    --btn-hover-bg: #0056b3;
    --error-color: #dc3545;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background: var(--main-bg);
    color: var(--header-text);
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.logo {
    padding: 20px;
    text-align: center;
}
.logo img {
    max-width: 100%;
    height: auto;
}
.nav {
    flex: 1;
    overflow-y: auto;
}
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
}
.nav-header i {
    margin-right: 10px;
}
.nav-header:hover {
    background: var(--sidebar-hover);
}
.nav-links {
    background: var(--sidebar-bg);
}
.nav-links.collapsed {
    display: none;
}
.nav-links a {
    display: block;
    padding: 10px 40px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.95em;
}
.nav-links a:hover {
    background: var(--sidebar-hover);
}
.toggle {
    background: none;
    border: none;
    color: var(--toggle-color);
    cursor: pointer;
    font-size: 0.9em;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--main-bg);
}

/* Top Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}
.search-bar {
    position: relative;
    max-width: 300px;
    width: 100%;
}
.search-bar input {
    width: 100%;
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}
.search-bar .icon-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1em;
    color: #999;
}
.icon-bell {
    font-size: 1.2em;
    margin-left: 20px;
    cursor: pointer;
}
.user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}
.user-dropdown .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}
.user-dropdown .dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background: var(--content-bg);
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 999;
}
.user-dropdown:hover .dropdown-menu {
    display: block;
}
.user-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.9em;
}
.user-dropdown .dropdown-menu a:hover {
    background: #f0f0f0;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 20px;
    background: #fafafa;
    font-size: 0.9em;
    color: var(--breadcrumb-text);
}
.breadcrumbs a {
    color: var(--link-color);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Page Content */
.content {
    flex: 1;
    padding: 20px;
    background: var(--content-bg);
}
h1 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--header-text);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95em;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
    color: var(--header-text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Buttons */
.btn,
.btn-save {
    display: inline-block;
    padding: 10px 20px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95em;
}
.btn:hover,
.btn-save:hover {
    background: var(--btn-hover-bg);
}
.button {
    display: inline-block;
    background-color: #9b1c1c;
    color: #fff;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 6px;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--main-bg);
}
.login-form {
    background: var(--content-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 300px;
}
.login-form h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4em;
    color: var(--header-text);
}
.login-form .form-group {
    margin-bottom: 15px;
}
.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
    color: var(--header-text);
}
.login-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}
.login-form .btn {
    width: 100%;
}
.error {
    color: var(--error-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9em;
}
.success {
    color: var(--success-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive Sidebar & Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--header-text);
    margin-left: 1rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .sidebar { position: fixed; top: 0; left: -250px; width: 250px; height: 100%; background: var(--sidebar-bg); z-index: 1000; transition: left 0.3s ease; }
    body.sidebar-open .sidebar { left: 0; }
    .main-content { margin-left: 0; }
    .dashboard-wrapper { flex-direction: column; }
    .sidebar-overlay { display: none; }
    body.sidebar-open .sidebar-overlay { display: block; position: fixed; top: 0; left: 250px; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 900; }
    .topbar { flex-wrap: wrap; }
    .search-bar { order: 2; width: 100%; margin: 10px 0; }
    .icon-bell, .user-dropdown { order: 3; margin-left: 0; }

    /* Responsive table */
    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
        width: 100%;
    }
    .responsive-table thead { display: none; }
    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 10px;
        background: #fff;
    }
    .responsive-table td {
        padding: 10px;
        border: none;
        position: relative;
        padding-left: 50%;
        font-size: 0.95em;
    }
    .responsive-table td::before {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #555;
        content: attr(data-label);
    }
}

/* Desktop-only option-list styling */
@media (min-width: 769px) {
  .option-wrapper { max-width: 700px; margin: 0 auto 20px; padding: 0; }
  .option-list { list-style: none; margin: 0; padding: 0; background: #f9f9f9; border: 1px solid #ccc; border-radius: 4px; }
  .option-list li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #eee; }
  .option-list li:last-child { border-bottom: none; }
  .option-list input[type="text"] { flex: 0 0 220px; padding: 6px 10px; font-size: 0.95em; border: 1px solid #ccc; border-radius: 4px; }
  .option-list label { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 0.9em; margin: 0; }
  .option-list .delete-option { margin-left: auto; background: #dc3545; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; font-size: 0.85em; cursor: pointer; }
  .option-list li:hover { background: #f0f0f0; }
}

/* Footer styling */
.footer {
    text-align: right;
    font-size: 0.9em;
    padding: 10px 20px;
    color: var(--breadcrumb-text);
}

/* admin.css */

.styled-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
}

.styled-form h1 {
  font-size: 28px;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: center;
}

.form-row {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="date"]:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #0077cc;
  outline: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #005fa3;
}

img {
  margin-top: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

.deleted-row {
  background-color: #fff0f0; /* soft red/pink */
}

.btn-sm {
  font-size: 0.85rem;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 4px;
}
.btn-danger {
  background: #c0392b;
  color: white;
  border: none;
}
.btn-success {
  background: #27ae60;
  color: white;
  border: none;
}
.pagination {
  margin-top: 20px;
  text-align: center;
}
.page-link {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 2px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.page-link.active {
  background: #005fa3;
  color: white;
}

