/* Body */
body { font-family: Arial; 
    padding: 20px; 
    background: #f0f0f0; }

    /* Tables */
.table-wrapper {
        overflow-x: auto;
    }

table { width: 100%; 
    border-collapse: collapse; 
    border-radius: 10px;
    overflow: hidden;
    background: white; 
    margin-top: 20px;
    font-size: 12px;
}

th, td { 
    padding: 8px; 
    border: 1px solid #ccc;
    text-align: left;
    font-size: 12px;

}

th { background: #ddd; 
    font-weight: 600;
    text-align: left; 
    font-size: 12px; 
    color: #003366;
    }

    thead {
        background: #1e293b;
        color: #fff;
    }

    tbody tr:nth-child(even) {
        background: #f9fafb;
    }

    tbody tr:hover {
        background: #e2e8f0;
    }
/* Button style */

.button-center {
  display: flex;
  justify-content: center; /* centers horizontally */
  margin-top: 15px;        /* optional spacing */
}
.action-button {
  display: inline-block;
  margin-top: 10px;
  background: #b4b8be;
  color: rgb(4, 4, 4);
  padding: 5px 12px;
  text-decoration: none;
  border: none; 
  border-radius: 5px;
  font-size: 11px;
  text-align: center;

  width: auto;        /* let content decide width */
  max-width: 200px;   /* max width */
  white-space: nowrap; /* prevent text from wrapping */
}

.action-button:hover {
    background-color: #dcdee6;
}
.update-btn { 
    display: none; 
    padding: 5px 10px; 
    background: green; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 12px;
}
input[type="text"] {
    width: 250px;
  padding: 5px 10px;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 12px;
  transition: border 0.2s ease-in-out, box-shadow 0.2s;
}
input:focus {
  border-color: #28a745; /* green border when focused */
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.3);
}

/* Smaller pagination button */
.pagination-container {
  text-align: center;
  margin-top: 10px;
}

.page-button {
  display: inline-block;
  background: #b4b8be;
  color: #000;
  padding: 4px 8px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 11px;
  margin: 2px;
  transition: background 0.2s ease;
}

.page-button:hover {
  background: #a4a8ae;
}

.page-button.active {
  background-color: #0056b3;
  color: #fff;
  font-weight: bold;
}

.page-dots {
  display: inline-block;
  padding: 4px 6px;
  color: #555;
  font-size: 11px;
}
/* Modern Form */
.form-center {
  display: flex;
  justify-content: center; /* centers horizontally */
  margin-top: 15px;        /* optional spacing */
}
.modern-form {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    display: grid;
    gap: 25px;
        max-height: 80vh;       /* limit height */
    overflow-y: auto;       /* allow vertical scroll */
}

.modern-form h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #4c6779;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    background: #f9f9f9;      /* match form background to avoid overlap transparency */
    position: sticky;

    z-index: 10;              /* ensure it stays above form fields */
}

/* Two main columns */
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Individual column */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section headings */
.form-column h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #4c6779;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* Input container */
.form-group {
    display: flex;
    flex-direction: column;
}

.submit-row {
    text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
    .form-columns {
        grid-template-columns: 1fr;
    }

    .submit-row {
        text-align: center; /* center the button on mobile */
    }

    .action-button {
        width: 100%;
        max-width: 250px;  /* reasonable max width for mobile */
        box-sizing: border-box; /* ensures padding doesn't break width */
    }
}

/* Apply same styling to all input types and textareas */
.form-input,
.form-textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="file"],
select {
  width: 100%;
  padding: 4px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;         /* consistent height across types */
  transition: border 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;   /* consistent box model */
  appearance: none;         /* remove browser quirks */
}

/* Make number inputs smaller */
input[type="number"] {
  width: 120px; /* or adjust to 100px / 80px depending on layout */
  display: inline-block;
}


/* For textareas */
.form-textarea {
  resize: vertical; /* allow resizing vertically but not sideways */
  min-height: 80px; /* keeps them proportionate */
}

.form-input:focus,
.form-textarea:focus 
 {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-select {
  width: fit-content;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 12px;
  background-color: #fff;
  color: #333;
  white-space: nowrap;       /* prevent text wrapping */
  overflow: hidden;          /* prevent content spill */
  text-overflow: ellipsis;   /* show "..." if too long */
  box-sizing: border-box;
  appearance: none;
}


.form-select:focus {
  border-color: #007bff;       /* focus border color */
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.25);
  outline: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px; /* small spacing between input and button */
  max-width: 600px;

}

.search-box .form-input {
  flex: 1; /* input takes remaining space */
  border-radius: 10px;
  padding: 4px 14px;
}

.search-box .action-button {
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap; /* prevents text from breaking */
}
@media (max-width: 480px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box .action-button {
    width: 100%;
  }
}

/* 🟩 Rate Grid Layout */
.rate-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

/* 🟦 Each Fieldset = one column */
.rate-fieldset {
    flex: 1 1 calc(33.333% - 20px); /* 3 per row on large screens */
    min-width: 280px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.rate-fieldset legend {
    font-weight: bold;
    color: #007bff;
    text-transform: uppercase;
}

.rate-fieldset label {
    display: block;
    margin-bottom: 10px;
}

.rate-fieldset input {
    width: 100%;
}

/* 🟨 Responsive: stack on tablets & phones */
@media (max-width: 900px) {
    .rate-fieldset {
        flex: 1 1 calc(50% - 20px); /* 2 per row on medium screens */
    }
}

@media (max-width: 600px) {
    .rate-fieldset {
        flex: 1 1 100%; /* full width on small screens */
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto; /* ensures entire modal can scroll if too tall */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 750px;
    max-height: 80vh; /* limits modal height */
    overflow-y: auto; /* enables scroll inside the modal */
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}























.checkbox-group { margin-bottom: 10px; 
    font-size: 12px;

}

/* Dashboard Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid container for dashboard boxes */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

/* Individual dashboard card */
.dashboard-item {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.2s ease;
}
.dashboard-item:hover {
    transform: scale(1.02);
}

.dashboard-item h3 {
    margin-top: 0;
    color: #003366;
}

.dashboard-item p {
    margin: 4px 0;
    font-size: 12px;
}


.chart-container {
    width: 100%;
    max-width: 100%;
    height: 180px;
    padding: 10px;
    box-sizing: border-box;
    margin: 10px auto 0;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}


/* Charts grid layout */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Chart canvas styling */
.dashboard-charts canvas {
    width: 100% !important;
    height: 220px !important;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Typography */
body {
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.dashboard-container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 20px; 
}

.cards { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: space-between;

}
        .card {
            flex: 1 1 220px;
            padding: 20px;
            background: #f5f5f5;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            text-align: center;
            transition: 0.3s;
        }
        
.card:hover {
    background: #e9f0ff; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
        
.card h3 { 
    margin: 0 0 10px; 
    font-size: 18px; 
    color: #333;
}

.card .count { 
    font-size: 32px; 
    font-weight: bold; 
    color: #007bff; 
    margin-bottom: 8px;
}

.card a { 
    text-decoration: none; 
    color: inherit; 
    font-size: 12px; 
    font-weight: 600;
}

.timeline {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);  
    font-size: 12px;

        }

.timeline h3 { 
    margin-bottom: 10px; 
    color: #003366; 
    font-size: 16px;
}

.timeline ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.timeline li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #333;
        }
.timeline li:last-child {
    border-bottom: none;
}
        
.icon { 
    font-size: 20px; 
    margin-bottom: 8px; 
    display: block; 
    color: #007bff; 
        }
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    h2 {
        font-size: 12px;
    }
}
