body {
  margin: 0;
  font-family: Arial;
  background: #f5f7fb;
}

.layout {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #0f172a;
  color: white;
  padding: 20px;
  height: 100vh;
}

.sidebar select,
.sidebar button {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
}

/* Main */
.main {
  flex: 1;
  padding: 20px;
}

/* Cards */
.cards {
  display: flex;
  gap: 10px;
}

.card {
  flex: 1;
  background: white;
  padding: 15px;
  border-radius: 10px;
}

/* Form */
.form {
  margin: 20px 0;
}

input {
  padding: 10px;
  margin: 5px;
}

button {
  padding: 10px;
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
}

/* Grid */
.grid {
  display: flex;
  gap: 10px;
}

.panel {
  flex: 1;
  background: white;
  padding: 15px;
  border-radius: 10px;
}

/* AI Box */
.ai-box {
  margin-top: 20px;
  padding: 15px;
  background: #e0f2fe;
  border-radius: 10px;
}

/* ===== DROPDOWN BASE STYLE ===== */
select {
  width: 100%;
  padding: 10px 12px;
  margin: 5px 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
  outline: none;
  cursor: pointer;

  /* smooth SaaS look */
  transition: all 0.2s ease;
  appearance: none; /* removes default OS style */
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%236b7280' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 35px;
}

/* ===== HOVER STATE ===== */
select:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== FOCUS STATE ===== */
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* ===== OPTION STYLING (limited support) ===== */
option {
  padding: 10px;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.field label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 5px;
}

.seo-header {
  text-align: center;
  padding: 20px;
}

.seo-header h1 {
  font-size: 22px;
  margin-bottom: 5px;
}

.seo-header p {
  font-size: 14px;
  color: #6b7280;
}

/* SaaS Content Section Styling */
.seo-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.seo-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-content h2::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--global-theme);
    border-radius: 10px;
}

.seo-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Feature Grid Styling */
.seo-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0;
    list-style: none;
    margin-top: 20px;
}

.seo-content li {
    background: #f9fbff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    font-weight: 500;
}

.seo-content li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fff;
    border-color: var(--global-theme);
}

/* Special Highlight for Sri Lanka Mode */
.sl-mode-box {
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border: 2px dashed var(--sl-theme);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-content {
        padding: 20px;
        margin: 20px;
    }
    .seo-content ul {
        grid-template-columns: 1fr;
    }
}

.panel h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.4rem;
    border-bottom: 2px solid #f1f4f8;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modern Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead th {
    background-color: #f8f9fc;
    color: #5a67d8; /* Distinct color for headers */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px;
    border-bottom: 2px solid #edf2f7;
}

tbody td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    font-size: 1rem;
}

/* Alternating row colors for better readability */
tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

/* Hover effect to highlight current row */
tbody tr:hover {
    background-color: #f1f5ff;
    transition: background-color 0.2s ease;
}

/* Alignment for Amount column */
table th:last-child, 
table td:last-child {
    text-align: right;
    font-family: 'Courier New', Courier, monospace; /* Monospaced fonts align numbers better */
    font-weight: bold;
}

/* Styling for empty state or loading */
#table:empty::after {
    content: "No expenses recorded yet.";
    display: block;
    padding: 20px;
    color: #a0aec0;
    font-style: italic;
    text-align: center;
}

@media (max-width: 600px) {
    .panel {
        padding: 15px;
    }
    tbody td, thead th {
        padding: 10px;
        font-size: 0.9rem;
    }
}