/* General resets */

#side-menu .feather {
  stroke: #ffffff !important;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(135deg, #141519, #1c2533); /* darker purple/blue */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: white;
}

a {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.25rem; /* modern equivalent of x-large */
    font-weight: 500;
    text-decoration: none;
    color: #0d6efd;
    transition: color 0.2s ease;
}

a:hover {
    color: #0a58ca;
}

/* Default: no top black padding */
#app {
    min-height: 100vh;
    padding-top: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Only iOS: apply black padding at top */
body.ios #app {
    padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(135deg, #141519, #1c2533); /* darker purple/blue */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0d6efd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) 0;
    z-index: 1000;
}

.bottom-nav .nav-item {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

/* Hamburger Menu */
#hamburger-btn {
    position: fixed;
    top: env(safe-area-inset-top, 10px);
    right: 20px;
    z-index: 1100;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
}

#side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: linear-gradient(135deg, #232536, #34495e); /* slightly lighter than main background */
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 60px);
    transition: right 0.3s ease;
    z-index: 1050;
}

#side-menu .nav-item {
    padding: 16px;
    color: rgb(202, 200, 200);
    text-decoration: none;
}

#side-menu .nav-item:hover {
    color: rgb(255, 255, 255);
}

/* Landing Page */
.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 0 16px;
}

.app-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

p {
    max-width: 300px;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-btn {
    padding: 12px 24px;
    background: white;
    color: #0d6efd;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Table container for horizontal scroll on mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

/* Table styles */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.tool-table th,
.tool-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.tool-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-table th,
    .tool-table td {
        padding: 10px 12px;
    }
}

/* Message CSS */
/* Message container */
.message-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Base message styles */
.message {
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Django messages dark theme */
.messages {
    margin: 1rem auto;
    max-width: 800px;
    padding: 0;
    list-style: none;
}

.messages li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Success */
.messages .success {
    background-color: #065f46; /* dark emerald */
    color: #d1fae5; /* soft green text */
    border: 1px solid #10b981;
}

/* Error */
.messages .error {
    background-color: #7f1d1d; /* dark red */
    color: #fee2e2; /* light red text */
    border: 1px solid #ef4444;
}

/* Warning */
.messages .warning {
    background-color: #78350f; /* dark amber */
    color: #fef3c7; /* warm text */
    border: 1px solid #f59e0b;
}

/* Info */
.messages .info {
    background-color: #1e3a8a; /* dark blue */
    color: #dbeafe; /* soft blue text */
    border: 1px solid #3b82f6;
}

/* Search */

.search-form {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.search-form button:hover {
    background: #1e40af;
}
.search-btn {
  display: inline-flex;         /* align icon + text */
  align-items: center;          /* vertical centering */
  gap: 6px;                     /* space between icon and text */
  padding: 6px 12px;
  border-radius: 6px;
  background: #0d6efd;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

.search-btn .icon {
  width: 18px;                  /* control icon size */
  height: 18px;
  display: block;               /* removes inline gap quirks */
}