/* ===================================
   Barangay e-Services - Main Stylesheet
   =================================== */

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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Global Styles
   =================================== */

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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.3px;
}

body {
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.text-muted {
    color: var(--text-light) !important;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #0284c7;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-xs {
    padding: 0.125rem 0.5rem;
    font-size: 0.65rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.message-tabs {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 10px;
    align-items: center;
}

.message-tabs a {
    text-decoration: none;
}

.message-tabs .btn {
    padding: 0.75rem 1.25rem;
    min-width: 130px;
    border-radius: 999px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===================================
   Forms
   =================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: white;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.required {
    color: var(--danger-color);
    margin-left: 0.25rem;
    font-weight: 700;
}

.radio-group {
    margin-bottom: 0.75rem;
}

.radio-group input[type="radio"],
.radio-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
.form-container {
    background-color: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}   max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   Alerts
   =================================== */

.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left-color: var(--success-color);
}

.alert-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background-color: #fef3c7;
    color: #78350f;
    border-left-color: var(--warning-color);
}

.alert-info {
    background-color: #cffafe;
    color: #164e63;
    border-left-color: var(--info-color);
}

/* ===================================
   Badges
   =================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.badge-warning {
    background-color: #fef3c7;
    color: #78350f;
}

.badge-info {
    background-color: #cffafe;
    color: #164e63;
}

/* ===================================
   Landing Page Styles
   =================================== */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-dark);
}

.navbar-menu a.btn {
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 8rem 1rem;
    text-align: center;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.services {
    padding: 5rem 1rem;
    background-color: white;
}

.services h3,
.about h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
.service-card {
    background-color: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}   transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about {
    padding: 4rem 1rem;
    background-color: var(--light-bg);
}

.about p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0;
}

/* ===================================
   Authentication Styles
   =================================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/barangay-bg.jpg') center/cover;
    background-attachment: fixed;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-box {
    background-color: white;
    padding: 3rem;
    border-radius: 0.875rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-box-large {
    max-width: 600px;
}

.auth-box h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-box .text-muted {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ===================================
   Dashboard Styles
   =================================== */

.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.role-badge {
    font-size: 0.75rem;
    color: white;
    background-color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: #cbd5e1;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    display: block;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.top-navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-content h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.news-wrapper {
    padding: 2rem;
    width: 100%;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.dashboard-content-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-content-sidebar {
    display: none;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card h4 {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stat-card-primary {
    border-left-color: var(--primary-color);
}

.stat-card-success {
    border-left-color: var(--success-color);
}

.stat-card-danger {
    border-left-color: var(--danger-color);
}

.stat-card-warning {
    border-left-color: var(--warning-color);
}

.stat-card-info {
    border-left-color: var(--info-color);
}

.stat-card a {
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* ===================================
   Section Styles
   =================================== */

.welcome-section,
.recent-section,
.admin-section,
.staff-section {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.welcome-section h3,
.recent-section h3,
.admin-section h3,
.staff-section h3 {
    margin-bottom: 1rem;
}

/* ===================================
   Table Styles
   =================================== */

.applications-table,
.admin-table,
.staff-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.applications-table thead,
.admin-table thead,
.staff-table thead {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

.applications-table th,
.admin-table th,
.staff-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.applications-table td,
.admin-table td,
.staff-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.applications-table tbody tr:hover,
.admin-table tbody tr:hover,
.staff-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.02);
}

.applications-table tbody tr:last-child td,
.admin-table tbody tr:last-child td,
.staff-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===================================
   Service Applications Grid
   =================================== */

.service-applications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.app-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.app-card p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.service-fee {
    background-color: var(--light-bg);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-card .btn {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* ===================================
   Admin Controls
   =================================== */

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-controls .form-control,
.admin-controls select {
    flex: 1;
    min-width: 200px;
}

.filter-section {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-section label {
    margin-bottom: 0;
    font-weight: 500;
}

.filter-section .form-control {
    flex: 0 1 200px;
}

/* ===================================
   Announcement Box
   =================================== */

.announcement-box {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.announcement-box h4 {
    margin-bottom: 0.5rem;
    color: #78350f;
}

.announcement-box p {
    margin-bottom: 0.5rem;
    color: #78350f;
}

/* ===================================
   Application Details
   =================================== */

.application-details {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row label {
    font-weight: 600;
    margin-bottom: 0;
    flex: 0 0 200px;
}

.detail-row span {
    flex: 1;
    text-align: right;
    color: var(--text-light);
}

.detail-row .status-wrapper {
    display: inline-flex;
    justify-content: flex-end;
    /* Added width fit-content to prevent stretching */
    width: fit-content; 
}

.detail-row .status-wrapper .badge {
    display: inline-flex !important;
    width: auto !important; /* Prevents the "footlong" stretching */
    padding: 6px 16px !important; /* Vertical and Horizontal padding */
    border-radius: 9999px !important; /* Forces the semi-circle ends */
    white-space: nowrap !important;
    line-height: 1 !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ===================================
   News Section Styles
   =================================== */

.news-section {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    margin: 0;
    border: 1px solid var(--border-color);
}

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.news-section h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.news-item:hover {
    background-color: white;
    border-left-color: #1e40af;
    box-shadow: var(--shadow);
}

.news-content h4 {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.news-content h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-content h4 a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.news-content p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-lighter);
    flex-wrap: wrap;
}

.news-source {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.news-date {
    display: flex;
    align-items: center;
}

.news-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.news-refresh-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background-color: var(--light-bg);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dashboard-content-sidebar {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        width: 250px;
    }

    .sidebar.open {
        left: 0;
    }

    .navbar-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .auth-box {
        max-width: 100%;
    }

    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .user-info {
        justify-content: space-between;
        width: 100%;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-row label,
    .detail-row span {
        flex: 1;
        text-align: left;
    }

    .detail-row span {
        font-weight: 500;
        margin-top: 0.25rem;
    }

    .applications-table,
    .admin-table,
    .staff-table {
        font-size: 0.875rem;
    }

    .applications-table th,
    .admin-table th,
    .staff-table th,
    .applications-table td,
    .admin-table td,
    .staff-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .service-applications {
        grid-template-columns: 1fr;
    }

    .app-card .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-lg {
        width: 100%;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: 0.5rem;
        text-align: center;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .sidebar,
    .top-navbar,
    .form-actions,
    .action-buttons {
        display: none;
    }

    .main-content {
        grid-column: 1 / -1;
    }

    .dashboard-content {
        max-width: 100%;
    }
}

/* Fix for the 'footlong' status badge */
.detail-row span.badge {
    flex: none !important;      /* Stops the row from stretching the badge */
    width: fit-content !important; /* Forces the width to match the text */
    margin-left: auto;          /* Pushes the pill to the right side */
    display: inline-flex !important; 
    border-radius: 9999px !important; /* Ensures perfect pill shape */
    padding: 0.5rem 1.5rem !important; /* Adds nice spacing inside the pill */
}

/* Ensure the wrapper doesn't force a stretch */
.detail-row .status-wrapper {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100%;
}


