body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f2f2f2;
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.header .logo-img {
    width: 8px;            /* smaller footprint */
    height: 20px;           /* preserve aspect ratio */
    border-radius: 6px;     /* slight rounding for polish */
    object-fit: contain;
    background: transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);  /* subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.header .logo-img:hover {
    transform: scale(1.05);  /* gentle hover effect */
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    filter: brightness(1.05);
}

.header .nav {
  position: absolute; /* position nav separately */
  right: 40px;        /* stick to the right side */
  top: 50%;
  transform: translateY(-50%);
}

.header .nav a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.header .nav a:hover {
  color: #FFD700;
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 400px;
    animation: fadeIn 0.6s ease;
}

.form-card h2 {
    margin-bottom: 20px;
    color: #d00;
    text-align: center;
}

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

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

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #d00;
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #d00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #a00;
}

.success-msg {
    margin-top: 15px;
    color: green;
    font-weight: bold;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 450px;
    margin: 40px auto;
    animation: fadeIn 0.6s ease;
}

.form-card h2 {
    margin-bottom: 20px;
    color: #d00;
    text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #d00;
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #d00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #a00;
}

.success-msg {
    margin-top: 15px;
    color: green;
    font-weight: bold;
    text-align: center;
}

.error-msg {
    margin-top: 15px;
    color: red;
    font-weight: bold;
    text-align: center;
}
/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 220px;
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    transition: width 0.3s;
}
.sidebar.collapsed {
    width: 60px;
}
.toggle-btn {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 20px;
    cursor: pointer;
    margin-bottom: 20px;
}
.sidebar nav a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}
.sidebar nav a:hover,
.sidebar nav a.active {
    background: #d00;
    color: #fff;
}

/* Main content */
.main-content {
    margin-left: 220px;
    flex-grow: 1;
    padding: 25px;
    background: #f2f2f2;
    min-height: 100vh;
    transition: margin-left 0.3s;
}
.sidebar.collapsed ~ .main-content {
    margin-left: 60px;
}

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 20px;
}
.skeleton-input {
    height: 50px;
    width: 100%;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Ultra-modern search bar */
.search-bar {
    width: 100%;
    padding: 12px 45px 12px 20px;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    outline: none;
    color: #333;
    position: relative;
}

/* Add a subtle glow on focus */
.search-bar:focus {
    box-shadow: 0 0 10px rgba(220,0,0,0.6);
    background: rgba(255,255,255,0.95);
}

/* Placeholder styling */
.search-bar::placeholder {
    color: #888;
    font-style: italic;
}

/* Optional search icon overlay */
.search-bar::before {
    content: "🔍";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #d00;
}
.updates-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    background: #fff;
}

.updates-table th, .updates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.updates-table th {
    background: #fafafa;
    font-weight: bold;
    color: #333;
}

.updates-table tr:hover {
    background: #f9f9f9;
}

.editable-location {
    background: #fefefe;
    cursor: text;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin: 0 3px;
    transition: transform 0.2s;
}
.icon-btn:hover {
    transform: scale(1.2);
}
.icon-btn svg {
    width: 20px;
    height: 20px;
}
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px;
}
.close-btn {
    cursor: pointer;
    font-size: 22px;
    border: none;
    background: none;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Feedback card */
.feedback-card {
    position: fixed;
    top: 20px;
    right: -400px; /* start off-screen */
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: right 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}
.feedback-card.success {
    background: #27ae60; /* green */
}
.feedback-card.error {
    background: #d63031; /* red */
}
.feedback-card.show {
    right: 20px; /* slide in */
    opacity: 1;
}
.hidden { display: none; }

/* Modal base */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px;
}
.close-btn {
    cursor: pointer;
    font-size: 22px;
    border: none;
    background: none;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #222;
  color: #fff;
  flex-shrink: 0;
  padding: 20px;
}

.content {
  flex: 1;
  padding: 20px;
  background: #f9f9f9;
}

/* Cards */
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.summary-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
  width: 200px;
  transition: transform 0.3s ease;
}
.summary-card:hover {
  transform: translateY(-5px);
}
.summary-card h3 {
  color: red;
  margin: 10px 0;
}
.summary-card p {
  font-size: 20px;
  font-weight: bold;
  color: #555;
}
.summary-card .icon {
  margin-bottom: 10px;
}

/* Table */
.report-table table {
  width: 100%;
  border-collapse: collapse;
}
.report-table th, .report-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.report-table th {
  background: red;
  color: white;
}
.report-table tr:nth-child(even) {
  background: #f9f9f9;
}
.support-btn {
  display: inline-flex;
  align-items: center;
  background-color: #2980b9;
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-bottom: 15px;
}
.support-btn:hover {
  background-color: #1f6396;
}
