@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f7fb;
    color: #263445;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    padding: 20px 5%;
    border-bottom: 1px solid #e1e7ef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

header h1 {
    color: #2563eb;
    margin-bottom: 10px;
}

header p {
    color: #64748b;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
}

nav a,
header > a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border-bottom: 2px solid transparent;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav a:hover,
header > a:hover {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    transform: scale(1.08);
}

nav a[aria-current="page"] {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Main layout and fade-in animation */
main {
    width: 90%;
    max-width: 1200px;
    margin: 35px auto;
    animation: fadeIn 0.6s ease-in-out;
}

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

section {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
}

/* Blue banner ONLY for the Dashboard welcome box */
.welcome-banner {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.welcome-banner h2,
.welcome-banner p {
    color: white;
}

h2 {
    margin-bottom: 18px;
    color: #1e293b;
}

h3 {
    margin-bottom: 10px;
}

/* Forms and Inputs */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 550px;
}

label {
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background-color: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #1d4ed8;
}

/* Green Call button */
.call-btn {
    background-color: #10b981;
    color: white;
    padding: 6px 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.call-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Dashboard Overview Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-cards article {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-cards article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-cards p {
    color: #2563eb;
    font-size: 28px;
    font-weight: bold;
}

/* Color-coded overview cards */
.dashboard-cards article:nth-child(2) { border-left-color: #7c3aed; }
.dashboard-cards article:nth-child(3) { border-left-color: #f59e0b; }
.dashboard-cards article:nth-child(4) { border-left-color: #10b981; }

.dashboard-cards article:nth-child(2) p { color: #7c3aed; }
.dashboard-cards article:nth-child(3) p { color: #f59e0b; }
.dashboard-cards article:nth-child(4) p { color: #10b981; }

/* Available Services Image Cards */
.service-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.service-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 12px 15px;
}

/* Tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #fff;
}

th,
td {
    padding: 13px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background-color: #eff6ff;
    color: #1e40af;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* Utility classes */
.search-box {
    max-width: 400px;
    margin: 15px 0;
}

.category-list {
    padding-left: 25px;
}

.category-list li {
    margin-bottom: 8px;
}

.page-link {
    margin-top: 18px;
}

.page-link a {
    color: #2563eb;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {
    .dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    nav { gap: 12px; }
    main { width: 94%; }
}

@media (max-width: 480px) {
    .dashboard-cards,
    .service-container { grid-template-columns: 1fr; }
    header { padding: 15px; }
    section { padding: 16px; }
}