/* General Page Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Slightly more modern font */
    margin: 0;
    padding: 0;
    background: linear-gradient(to right bottom, #e0f2f7, #c1dff0); /* Soft blue gradient */
    color: #34495e; /* Darker, professional text color */
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(to right, #2c3e50, #34495e); /* Dark blue/grey gradient for a premium feel */
    color: #ecf0f1; /* Light text color for contrast */
    padding: 15px 20px; /* Adjusted padding */
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* Stronger shadow */
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
}

.header-content {
    display: flex;
    align-items: center;
}

header img.logo {
    height: 45px; /* Slightly larger logo */
    margin-right: 15px; /* More space */
}

header h1 {
    font-size: 28px; /* Larger heading */
    margin: 0;
    font-weight: 600; /* Slightly bolder */
}

/* Navigation Buttons */
nav {
    text-align: center;
    background-color: #ffffff; /* White background for nav */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav button {
    background: #3498db; /* Vibrant blue for tabs */
    border: none;
    color: white;
    padding: 12px 25px; /* Larger buttons */
    margin: 0 8px; /* Space between buttons */
    border-radius: 30px; /* Pill-shaped buttons */
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease-in-out; /* Smoother transition */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav button:hover {
    background: #2980b9; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav button.active {
    background: #e74c3c; /* Striking red for active tab */
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

/* Main Content Area */
main {
    padding: 30px; /* More padding */
    max-width: 1200px; /* Max width for better readability */
    margin: 20px auto; /* Center content */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Lighter, broader shadow */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Header (e.g., Daily Expenses, Clients) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* More space below header */
    border-bottom: 2px solid #ecf0f1; /* Subtle separator */
    padding-bottom: 15px;
}

h2 {
    color: #2c3e50; /* Darker heading color */
    margin: 0;
    font-size: 26px; /* Larger section titles */
    font-weight: 700;
}

/* Forms Styling */
form {
    margin: 25px 0; /* Adjusted margin */
    padding: 25px;
    background-color: #f8fcfd; /* Very light background for forms */
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08); /* Inner shadow for depth */
    display: grid; /* Use grid for better form layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between form groups */
}

.form-group {
    margin-bottom: 0; /* Removed margin-bottom here as gap handles spacing */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* Bolder labels */
    color: #555;
    font-size: 14px;
}

input,
input[type="number"],
select {
    padding: 12px; /* More padding in inputs */
    border: 1px solid #dcdcdc; /* Lighter border */
    border-radius: 6px;
    width: 100%; /* Full width within form-group */
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

input:focus,
input[type="number"]:focus,
select:focus {
    border-color: #3498db; /* Blue border on focus */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.4);
}

/* Specific button styling for "Add" buttons */
button.add-btn {
    background: #27ae60; /* Fresh green for add button */
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 16px;
    font-weight: 600;
    grid-column: span 1; /* Occupy one column in grid */
    align-self: end; /* Align to the bottom if other fields are taller */
    width: auto; /* Allow button to size naturally */
    min-width: 150px;
}

button.add-btn:hover {
    background: #2ecc71; /* Lighter green on hover */
    transform: translateY(-1px);
}

/* Export Button Styling */
.section-header button {
    background: #95a5a6; /* Muted grey for export */
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.section-header button:hover {
    background: #7f8c8d;
}

/* List Styling (Expenses, Clients, etc.) */
ul {
    margin: 25px 0;
    padding: 0;
    list-style-type: none;
}

ul li {
    background: #ffffff;
    padding: 18px; /* More padding */
    margin-bottom: 12px; /* More space between items */
    border-left: 6px solid #3498db; /* Vibrant blue accent */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06); /* Softer shadow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease; /* Subtle hover effect */
}

ul li:hover {
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

ul li button {
    background: #e74c3c; /* Red for delete buttons */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 13px;
}

ul li button:hover {
    background: #c0392b; /* Darker red on hover */
}
/* Excel-like card box */
.card-box {
  display: grid;
  grid-template-columns: 150px 1fr; /* Label | Value */
  gap: 8px 20px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fefefe;
}

.field-row {
  display: contents; /* allow grid alignment */
}

.field-label {
  font-weight: 600;
  color: #2c3e50;
  padding: 6px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.field-value {
  padding: 6px;
  border-bottom: 1px solid #eee;
}

/* Delete button inside grid */
.card-box .delete-btn {
  grid-column: span 2;
  margin-top: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 13px;
}

.card-box .delete-btn:hover {
  background: #c0392b;
}

/* Override list items to block layout */
ul li {
  display: block;
  margin-bottom: 15px;
}

