:root {
    --primary-green: #12753e;
    --primary-blue: #2b3a8f;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    box-sizing: border-box;
    overflow-x: hidden;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.2rem;
}
.navbar-brand:hover {
    text-decoration: none;
    color: #12753e
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Mobile overlay - hidden by default */
.navbar-overlay {
    display: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 0.5rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-link:hover, 
.nav-link.active,
.nav-item.active .nav-link {
    color: var(--primary-green);
}

.nav-link.active {
    font-weight: 600;
}

/* Nav Icon Buttons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

.nav-icon-btn:hover {
    background-color: var(--primary-green);
    color: white;
}

.nav-icon-btn i {
    font-size: 1.1rem;
}

.nav-icon-btn .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.navbar-user {
    display: flex;
    align-items: center;
    margin-left: 2rem;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    margin-right: 5px;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* Request Permit Section */
.permit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.permit-option {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.permit-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.permit-option i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.permit-option h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.permit-option p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Status Item */
.status-item {
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.status-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.status-title {
    font-weight: 600; /* Semi-bold for the action title */
    color: var(--dark-gray);
}

.status-name-bold {
    font-weight: 700; /* Bold for names */
    color: var(--dark-gray);
}

.status-position-light {
    font-weight: 300; /* Light weight for positions */
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.status-date {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-left: 2.2rem; /* Align with text above */
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.status-badge.approved {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-office {
    font-weight: 500;
    color: var(--primary-blue);
}

.status-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-notify {
    background-color: var(--primary-green);
    color: white;
}

.btn-notify:hover {
    background-color: #0e5e30;
}

/* Requests List Section */
.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th, .requests-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.requests-table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 500;
}

.requests-table tr:hover {
    background-color: rgba(18, 117, 62, 0.05);
}

.request-id {
    color: var(--primary-blue);
    font-weight: 500;
}

.request-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(43, 58, 143, 0.1);
    color: var(--primary-blue);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Notification item in nav list */
.nav-notif-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: -0.75rem;
}

/* Logout item - icon button style matching notification */
.nav-logout-item {
    display: flex;
    align-items: center;
}

/* Mobile notification bell - hidden on desktop */
.mobile-notif-bell {
    display: none;
}

/* Shared notification dropdown - desktop positioning */
.navbar-container > .notifications-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    z-index: 1002;
}

.navbar-container > .notifications-container.active {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden;
    }

    .navbar {
        padding: 0.75rem 1rem;
        position: relative;
        overflow: visible;
    }
    
    .navbar-container {
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Notification item - hide inside hamburger on mobile */
    .nav-notif-item {
        display: none !important;
    }

    /* Mobile notification bell - show beside hamburger */
    .mobile-notif-bell {
        display: flex;
        align-items: center;
        position: relative;
        order: 2;
        margin-left: auto;
        margin-right: 8px;
    }

    .mobile-notif-bell .nav-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--light-gray);
        color: var(--dark-gray);
        text-decoration: none;
        position: relative;
        transition: background-color 0.2s, color 0.2s;
    }

    .mobile-notif-bell .nav-icon-btn:hover {
        background-color: var(--primary-green);
        color: var(--white);
    }

    /* Shared notification dropdown - positioned from mobile bell */
    .navbar-container > .notifications-container {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 4px;
        z-index: 1002;
        width: 320px;
    }

    .navbar-container > .notifications-container.active {
        display: block;
    }

    /* Logout in mobile menu - show as labeled link */
    .nav-logout-item .nav-icon-btn {
        display: flex;
        align-items: center;
        padding: 12px 18px;
        width: 100%;
        color: var(--dark-gray);
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 500;
        min-height: 44px;
        border-left: 3px solid transparent;
        background: none;
        border-radius: 0;
        height: auto;
        justify-content: flex-start;
    }

    .nav-logout-item .nav-icon-btn:hover {
        background-color: rgba(18, 117, 62, 0.06);
        color: var(--primary-green);
    }

    .nav-logout-item .nav-icon-btn i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        font-size: 1rem;
    }

    .nav-logout-item .nav-icon-btn::after {
        content: 'Logout';
        font-size: 0.92rem;
    }
    
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--light-gray);
        border: none;
        border-radius: 8px;
        font-size: 1.3rem;
        color: var(--dark-gray);
        cursor: pointer;
        z-index: 1001;
        padding: 0;
        order: 3;
        transition: background-color 0.2s, color 0.2s;
    }

    .navbar-toggler:hover {
        background-color: var(--primary-green);
        color: var(--white);
    }
    
    .navbar-brand {
        font-size: 1rem;
        order: 1;
        flex: 0 0 auto;
    }
    
    /* Compact dropdown menu - auto-fits the 4 sections */
    .navbar-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto !important;
        bottom: auto;
        width: 260px;
        height: auto;
        flex: none;
        background-color: var(--white);
        flex-direction: column;
        display: none !important;
        padding: 8px 0;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
                    0 2px 8px rgba(0, 0, 0, 0.06);
        z-index: 1000;
        overflow: hidden;
        margin-top: 6px;
        margin-left: auto;
    }

    .navbar-menu.active {
        display: flex !important;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 18px;
        width: 100%;
        color: var(--dark-gray);
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 500;
        height: auto;
        min-height: 44px;
        white-space: nowrap;
        border-left: 3px solid transparent;
        transition: background-color 0.15s, color 0.15s;
    }

    .nav-link:hover {
        background-color: rgba(18, 117, 62, 0.06);
        color: var(--primary-green);
    }

    .nav-link.active {
        background-color: rgba(18, 117, 62, 0.1);
        color: var(--primary-green);
        font-weight: 600;
        border-left-color: var(--primary-green);
    }

    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    /* Icons row (notification + logout) pinned at bottom */
    .nav-icons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        margin: 0;
        border-top: 1px solid var(--light-gray);
        background-color: #fafbfc;
        width: 100%;
    }

    .nav-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--white);
        color: var(--dark-gray);
        text-decoration: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        min-width: 40px;
        position: relative;
        transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    }

    .nav-icon-btn:hover {
        background-color: var(--primary-green);
        color: white;
        box-shadow: 0 2px 8px rgba(18, 117, 62, 0.25);
    }

    .navbar-user {
        display: none;
    }

    .user-name {
        display: none;
    }

    /* Overlay - dim background when menu is open */
    .navbar-overlay {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .navbar-overlay.active {
        display: block !important;
        opacity: 1;
    }
}

/* ===== Tablets & Small Laptops (max-width: 768px) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
        margin: 0.75rem auto;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .permit-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .permit-option {
        padding: 1.25rem;
    }

    .permit-option i {
        font-size: 2rem;
    }

    /* Mobile vertical card layout for requests table */
    .requests-table {
        display: block;
        overflow-x: visible;
    }

    .requests-table thead {
        display: none;
    }

    .requests-table tbody {
        display: block;
    }

    .requests-table tbody tr {
        display: block;
        margin-bottom: 16px;
        background: white;
        border: 1px solid #e5e7eb;
        border-left: 4px solid #2a3c8f;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .requests-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .requests-table tbody tr.no-data {
        border-left: none;
    }

    .requests-table tbody td {
        display: block;
        padding: 10px 0;
        border: none;
        text-align: left;
        position: relative;
        padding-left: 45%;
        min-height: 32px;
    }

    .requests-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 10px;
        font-weight: 700;
        color: #64748b;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        width: 40%;
    }

    .requests-table tbody td:first-child {
        padding-left: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 700;
        font-size: 1.1rem;
        color: #2a3c8f;
    }

    .requests-table tbody td:first-child:before {
        display: none;
    }

    .requests-table tbody td:last-child {
        padding-top: 16px;
        margin-top: 12px;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
    }

    .requests-table tbody td:last-child:before {
        display: none;
    }

    .requests-table tbody td:last-child .btn-view {
        width: 100%;
        display: block;
        text-align: center;
        padding: 12px;
        min-height: 44px;
        font-size: 15px;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-actions {
        margin-top: 1rem;
        width: 100%;
    }

    .status-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-box {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-box input,
    #request-id-input {
        max-width: 100%;
        width: 100%;
    }

    .banner-container img {
        max-width: 100%;
    }

    .form-container {
        padding: 1rem;
        margin: 0.75rem 0.5rem;
    }
}

/* ===== Mobile Phones (max-width: 576px) ===== */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 0.85rem;
        gap: 0.25rem;
    }

    .logo {
        height: 30px;
        margin-right: 5px;
    }

    .container {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }

    .card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }

    .card-title {
        font-size: 1rem;
    }

    .permit-option {
        padding: 0.75rem;
    }

    .permit-option i {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .permit-option h3 {
        font-size: 1rem;
    }

    .permit-option p {
        font-size: 0.85rem;
    }

    .form-container {
        padding: 0.75rem;
        margin: 0.5rem 0;
        max-width: 100%;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 0.95rem;
    }

    .form-group {
        flex-direction: column !important;
        margin-bottom: 0.75rem;
    }

    .form-control {
        padding: 0.625rem !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }

    .btn,
    .btn-check,
    .btn-submit,
    .btn-primary {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .btn-submit {
        width: 100%;
    }

    .status-date {
        margin-left: 0;
    }

    input, textarea, select {
        font-size: 16px;
    }

    /* Notification dropdown full-width on small phones */
    .navbar-container > .notifications-container {
        width: calc(100vw - 1rem);
        right: -0.5rem;
    }
}
/* View Button Styles */
.btn-view {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view:hover {
    background-color: #1a2a7a;
}

/* Banner Styling */
.banner-container {
    background-color: white;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.banner-container img {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

@media (min-width: 1200px) {
    .banner-container img {
        max-width: 1400px;
    }
}

/* Multiple Type Icons */
.request-type {
    display: inline-block;
    margin-right: 0.5rem;
}

.request-type i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    padding: 0.3rem;
}

.request-type:hover i {
    color: var(--primary-green);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Request ID Header */
.request-id-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.request-id-header h3 {
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-id-display {
    background-color: rgba(43, 143, 45, 0.1);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Status Timeline */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Search Box retains focus style */
#request-id-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(18, 117, 62, 0.2);
}

/* Search Box Styles */
.search-box {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* search-box & card-title responsive are now in consolidated 768px block above */

#request-id-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    flex-grow: 1;
    max-width: 300px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #1a2a7a;
}

/* Status Results */
.no-result {
    text-align: center;
    padding: 2rem;
    color: var(--dark-gray);
}

.no-result i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.status-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* End of styles.css */