/*
=================================================
    Modern Insurance Portal Theme
    Marsh Proprietary Limited
=================================================
*/

/* ========================================
   CSS Variables for Brand Colors
======================================== */
:root {
    --primary-blue: #002C77;
    --secondary-blue: #00A8C8;
    --accent-blue: #009DE0;
    --light-blue: #7dd1f6;
    --very-light-blue: #C5E3E8;
    --dark-text: #2C3E50;
    --light-text: #6C757D;
    --border-color: #E0E8F0;
    --success-green: #28A745;
    --warning-orange: #FFC107;
    --danger-red: #DC3545;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --card-shadow: 0 4px 12px rgba(0, 44, 119, 0.15);
    --card-shadow-hover: 0 8px 24px rgba(0, 44, 119, 0.2);
    --transition-speed: 0.3s;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --max-width: 1140px;
    --border-gray: #ddd;
}

/* ========================================
   Modern Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23002C77' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > form {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

/* ========================================
   Modern Layout Structure
   ======================================== */
.clsTopDiv {
    background: #1a1a1a;
    height: 35px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
}

.clsTopDiv .account-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.clsTopDiv .account-buttons button {
    background: transparent !important;
    border: 1px solid #666 !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
  font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clsTopDiv .account-buttons button:hover {
    background: #333 !important;
    border-color: #999 !important;
}

.clsBannerDiv {
    background: #4a4a4a;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    height: 70px;
}

.clsBannerDiv .banner-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.clsBannerDiv .banner-logo {
  display: flex;
    align-items: center;
    margin-right: 50px;
}

.clsBannerDiv .banner-logo img {
    height: 45px;
    width: auto;
}

.banner-mymarsh {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-left: auto;
    padding-right: 20px;
}
.clsMainDiv,
.clsMainMenuDiv {
    max-width: 1200px;
  width: 100%;
    margin: 0 auto;
    background: var(--white);
}

.clsMainDiv {
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0 !important;
    margin-bottom: 20px;
    min-height: 500px;
    clear: both !important;
    position: relative;
    z-index: 1;
    background: #fff;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure navigation doesn't overlap content */
.clsNavDiv {
    background-color: #FFFFFF;
    padding-left: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto !important;
  clear: both !important;
}

/* Fix any positioning issues */
#divMainMenu {
    position: relative;
    z-index: 100;
    margin-bottom: 0;
}

#divMain {
    position: relative;
    z-index: 1;
    clear: both;
}

/* Remove old banner text completely */
.clsBannerText {
    display: none !important;
}

/* ========================================
   Modern Navigation Menu
======================================== */
.clsMainMenuDiv {
    background: #4a4a4a !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: visible !important;
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
}

.MainMenuBar {
    background: #292929 !important;
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1200px;
}

.dropdown {
    border-right: none; /* Removed vertical separators */
position: relative !important;
    transition: all var(--transition-speed) ease;
    min-width: 140px;
    flex: 0 0 auto;
  display: block !important;
    float: left !important;
 z-index: 100 !important;
}

.dropdown:last-child {
 border-right: none;
}

.dropdown dt {
    padding: 15px 20px !important;
    font-size: 13px !important;
font-weight: 500 !important;
letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    position: relative;
    cursor: pointer !important;
    color: #FFFFFF !important;
  background-color: transparent !important;
    border: none !important;
    margin: 0 !important;
    line-height: 20px !important;
 height: 50px !important;
  display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dropdown dt:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #FFFFFF !important;
}

.dropdown dd {
 background: var(--white) !important;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #ddd !important;
    border-top: 2px solid var(--primary-blue) !important;
    min-width: 220px !important; /* Increased from 180px to prevent text wrapping */
    width: auto !important;
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none; /* Hidden by default - JS needs to control this */
    overflow: hidden !important;
    height: 0; /* JS needs to control this */
    opacity: 0; /* JS needs to control this */
}

.dropdown ul {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.dropdown li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown li a {
    color: var(--dark-text) !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid var(--border-color) !important;
    display: block !important;
    text-decoration: none !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box;
}

.dropdown li:last-child a {
    border-bottom: none !important;
}

.dropdown li a:hover {
    background: linear-gradient(90deg, var(--very-light-blue) 0%, var(--white) 100%) !important;
    color: var(--primary-blue) !important;
    padding-left: 30px !important;
}

/* Force clear any old dropdown styles */
.dropdown .underline,
.dropdown .rightline,
.dropdown .top {
    border: none !important;
}

/* ========================================
   Modern Cards & Panels
   ======================================== */
.modern-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 44, 119, 0.15);
    transition: all var(--transition-speed) ease;
    border: 1px solid #D0D8E0;
}

.modern-card:hover {
    box-shadow: 0 8px 24px rgba(0, 44, 119, 0.2);
    transform: translateY(-2px);
    border-color: #B0BED0;
}

.modern-card-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-blue);
}

.clsPageHeading {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 15px 25px;
font-size: 20px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 25px -30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Modern Forms
   ======================================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 168, 200, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group {
    margin-bottom: 20px;
}

/* ========================================
   Modern Buttons
   ======================================== */
button,
input[type="submit"],
input[type="button"],
.btn,
.inputbtn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-primary,
input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 44, 119, 0.2);
}

.btn-primary:hover,
input[type="submit"]:hover {
 background: linear-gradient(135deg, #001f5a 0%, #0090b3 100%);
    box-shadow: 0 4px 8px rgba(0, 44, 119, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
background: var(--light-bg);
    color: var(--dark-text);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* UserSearch Button Icons using Font Awesome */
#btnSearch::before {
    font-family: 'FontAwesome';
    content: '\f002 '; /* fa-search with space */
}

#btnCreateUser::before {
    font-family: 'FontAwesome';
    content: '\f234 '; /* fa-user-plus with space */
}

#btnExportToExcel::before {
    font-family: 'FontAwesome';
    content: '\f1c3 '; /* fa-file-excel-o with space */
}

.account-action,
.account-login {
    background: transparent !important;
    border: 2px solid var(--primary-blue) !important;
  color: var(--primary-blue) !important;
    padding: 10px 24px !important;
  border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: none;
}

.account-action:hover,
.account-login:hover {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 44, 119, 0.2);
}

.account-action {
    background: var(--white) !important;
}

.account-login {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
}

.account-login:hover {
    background: #001f5a !important;
}

/* ========================================
   Modern Tables
   ======================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    font-size: 14px;
    background: #fff;
}

table th {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

table th:last-child {
    border-right: none;
}

table td {
    padding: 16px 20px;
    border: none;
    border-top: 1px solid #F0F0F0;
    background: #fff;
    color: #333;
    font-size: 14px;
}

table tbody tr {
    background: #fff;
    transition: all 0.2s ease;
}

table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

table tbody tr:first-child td {
    border-top: none;
}

table tr:hover td {
    background: #F5F9FA;
    box-shadow: inset 0 0 0 1px #E8F4F8;
}

.gridView,
.customGridView,
.gridDownloadView {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gridView th,
.customGridView th,
.gridDownloadView th {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.gridView th:last-child,
.customGridView th:last-child,
.gridDownloadView th:last-child {
    border-right: none;
}

.gridView td,
.customGridView td,
.gridDownloadView td {
    padding: 16px 20px;
    border: none;
    border-top: 1px solid #F0F0F0;
    color: #333;
    font-size: 14px;
}

.gridView tr,
.customGridView tr,
.gridDownloadView tr {
    background: #fff;
    transition: all 0.2s ease;
}

.gridView tr:nth-child(even),
.customGridView tr:nth-child(even),
.gridDownloadView tr:nth-child(even) {
    background: #FAFAFA;
}

.gridView tr:hover td,
.customGridView tr:hover td,
.gridDownloadView tr:hover td {
    background: #F5F9FA;
    box-shadow: inset 0 0 0 1px #E8F4F8;
}

.gridView tbody tr:first-child td,
.customGridView tbody tr:first-child td,
.gridDownloadView tbody tr:first-child td {
    border-top: none;
}

/* Row style classes for backward compatibility */
.rowStyle {
    background-color: #fff !important;
    color: #333;
}

.alternatingRowStyle {
    background-color: #FAFAFA !important;
    color: #333;
}

.selectedRowStyle {
    background-color: #E3F2FD !important;
    color: #333;
    font-weight: 500;
    border-left: 3px solid #2196F3;
}

/* ========================================
   Modern Footer
   ======================================== */
.clsFooterDiv {
    background: var(--primary-blue);
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 44, 119, 0.1);
}

.clsFooterItem a {
    color: var(--white);
    transition: color var(--transition-speed) ease;
}

.clsFooterItem a:hover {
    color: var(--secondary-blue);
}

.clsCopyRight {
    background: #001f5a;
    color: var(--white);
    text-align: center;
    padding: 15px;
}

/* ========================================
   Collapsible Sections
   ======================================== */
.CollapsibleHeader {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--accent-blue) 100%);
color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    margin-top: 20px;
  font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.CollapsibleHeader:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    transform: translateX(5px);
}

.CollapsibleList {
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    background: var(--white);
}

/* ========================================
   Product Blocks
   ======================================== */
.clsProductBlock {
    background: var(--white);
    border: 2px solid var(--border-color);
 border-radius: 8px;
    padding: 20px;
    margin: 15px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.clsProductBlock:hover {
    border-color: var(--secondary-blue);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.clsBlockText {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 16px;
}

/* ========================================
   Icon Buttons
   ======================================== */
.askus_findoutmore,
.askus_compliment,
.askus_complaint,
.askus_submitnewclaim,
.askus_queryclaim,
.askus_amendpolicy,
.askus_updateprofile,
.clientsearch_new,
.clientsearch_find {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
 margin: 10px;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    color: var(--dark-text);
    text-decoration: none;
}

.askus_findoutmore:hover,
.askus_compliment:hover,
.askus_complaint:hover,
.askus_submitnewclaim:hover,
.askus_queryclaim:hover,
.askus_amendpolicy:hover,
.askus_updateprofile:hover,
.clientsearch_new:hover,
.clientsearch_find:hover {
    border-color: var(--secondary-blue);
    background: linear-gradient(135deg, rgba(0, 168, 200, 0.05) 0%, rgba(0, 157, 224, 0.05) 100%);
 transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.clsBreadCrumbLink {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.clsBreadCrumbLink:hover {
    color: var(--secondary-blue);
}

.clsBreadCrumbCurrent {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ========================================
   Alerts & Notifications
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(0, 168, 200, 0.1);
    border-left-color: var(--secondary-blue);
    color: var(--primary-blue);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-green);
    color: #155724;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-orange);
    color: #856404;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-red);
    color: #721c24;
}

/* ========================================
 Validation
   ======================================== */
.field-validation-error {
  color: var(--danger-red);
    font-size: 12px;
    margin-top: 5px;
 display: block;
}

.input-validation-error {
 border-color: var(--danger-red) !important;
    background: rgba(220, 53, 69, 0.05);
}

.validation-summary-errors {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid var(--danger-red);
    border-radius: 8px;
  padding: 15px 20px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 10px 0 0 20px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
  .clsMainDiv,
    .clsBannerDiv,
    .clsMainMenuDiv {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .clsMainDiv,
    .clsBannerDiv,
    .clsMainMenuDiv {
        max-width: 720px;
    }
    
    .dropdown {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .clsMainDiv {
        padding: 20px;
    }
    
    .clsMainDiv,
    .clsBannerDiv,
    .clsMainMenuDiv {
        max-width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .clsPageHeading {
        font-size: 16px;
        padding: 12px 20px;
        margin: -20px -20px 20px -20px;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px;
}
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.text-right {
 text-align: right;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden {
    display: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* ========================================
   Banner/Header Improvements
   ======================================== */
.banner-logo {
 display: flex;
    align-items: center;
}

.banner-logo img {
    max-height: 60px;
    width: auto;
}

.account-buttons {
  display: flex;
    gap: 12px;
    align-items: center;
}

/* Remove the old clsBannerText that showed "Navigate to home screen" */
.clsBannerText {
    display: none;
}

/* ========================================
   Menu Dropdown Fix - Ensure proper expansion
   ======================================== */
.dropdown dd.open {
    display: block !important;
    opacity: 1 !important;
}

/* Ensure menu items stack properly */
.dropdown ul {
    margin: 0;
    padding: 0;
}

.dropdown li {
    display: block;
  width: 100%;
}

/* Fix for menu width */
.clsMainMenuDiv,
.MainMenuBar {
    width: 100%;
    max-width: 1200px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .clsMainMenuDiv,
    .clsFooterDiv,
    .clsCopyRight,
    .dropdown,
    button,
    .btn,
    .account-action,
    .account-login,
  .clsBannerText {
    display: none;
    }
    
    .clsMainDiv {
 box-shadow: none;
        max-width: 100%;
    }
}
/* ========================================
   CLEAN THEME - CredLink Style
   ======================================== */

/* Container */
.container { padding: 0 40px; }

/* Top Bar - Dark */
.top-bar { 
    background: #222222; 
    height: 30px; 
    width: 100%;
}
.top-bar .container { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center;
    gap: 10px;
    height: 100%;
}
.top-bar a { 
    color: #fff; 
    text-decoration: none; 
    font-size: 13px; 
    padding: 0 10px;
    transition: opacity 0.3s;
}
.top-bar a:hover { 
    opacity: 0.8; 
}

/* Session Timer */
.session-timer {
    color: #fff;
    font-size: 12px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 5px;
}

.session-timer i {
    font-size: 13px;
}

.session-timer.warning {
    color: #FFC107;
}

.session-timer.critical {
    color: #DC3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Logo Bar - Gray */
.logo-bar { 
    background: #292929; 
    height: 80px; 
    width: 100%;
}
.logo-bar .container { 
    display: flex; 
    align-items: center; 
    gap: 30px; /* Space between title and menu */
    height: 100%; 
}
.logo-bar .logo-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-bar img { 
    height: 40px; 
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}
.mymarsh-text { 
    color: #fff; 
    font-size: 20px; 
    font-weight: 600; 
}

/* Inline Navigation Menu (left-aligned after myMarsh) */
.main-nav-inline {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1; /* Take remaining space */
}
.main-nav-inline .MainMenuBar {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    min-height: auto !important;
    max-width: none !important;
}
.main-nav-inline .dropdown {
    border-right: none !important; /* Remove vertical separators */
    min-width: 100px;
    height: 80px;
}
.main-nav-inline .dropdown dt {
    padding: 0 20px !important;
    height: 80px !important;
    font-size: 11px !important;
    position: relative;
}

/* Modern Menu Arrow Indicator */
.menu-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.3s ease;
}

.dropdown dt:hover .menu-arrow {
    transform: translateY(2px);
}


/* Old Main Nav (for pages still using it) */
.main-nav { 
    background: #292929; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    width: 100%;
}
.main-nav .container { 
    display: flex; 
}
/* Ensure menu placeholder doesn't interfere with layout */
.main-nav #phMainMenu {
    display: block;
    width: 100%;
}

/* Main Content - Centered with white background */
.main-content { 
background: #fff; 
max-width: 1200px;
width: 100%;
margin: 0 auto; 
padding: 40px 60px;
    position: relative;
    flex: 1;
    min-height: 300px;
    box-sizing: border-box;
}

/* Remove padding from main-content if page adds its own container */
.main-content .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 44, 119, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 200, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.main-content > * {
    position: relative;
    z-index: 1;
}

/* Content Padding Wrapper - REMOVED to allow master page padding to control margins */
/* Individual pages should NOT add their own padding/margins */
.main-content .page-header {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive adjustments for Clean theme */
@media (max-width: 992px) {
    .main-content {
        padding: 30px 40px;
        max-width: 100%;
        min-width: auto;
    }
    
    .action-card-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
.main-content {
    padding: 20px 30px;
    max-width: 100%;
    min-width: auto;
}
    
    .info-box {
        padding: 20px 25px;
    }
}

/* Full Width Page Header Wrapper - Place OUTSIDE main-content */
.full-width-header { 
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%); 
    color: #fff; 
    padding: 40px 0;
    margin: 0;
    width: 100%;
    position: relative; 
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.full-width-header .container {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}
.full-width-header.with-cityscape::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 200px; 
    background: url('Images/marsh_background_image_2.png') no-repeat center bottom; 
    background-size: cover; 
    opacity: 0.15; 
    pointer-events: none;
    animation: subtlePulse 10s ease-in-out infinite;
}
@keyframes subtlePulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.2; }
}
.full-width-header h1 { 
    margin: 0 0 10px 0; 
    font-size: 36px; 
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}
.full-width-header p { 
    margin: 0; 
    font-size: 16px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Alternative Header Text Layouts */

/* Combined: Diagonal Accent with Centered Text and Underline */
.full-width-header.style-diagonal-centered {
    position: relative;
    text-align: center;
}

.full-width-header.style-diagonal-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 0;
}

.full-width-header.style-diagonal-centered .container {
    position: relative;
    z-index: 1;
}

.full-width-header.style-diagonal-centered h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Page Header - Full Width Blue Gradient */
.page-header { 
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%); 
    color: #fff; 
    padding: 60px 0;
    margin: 0;
    width: 100%;
    position: relative; 
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header.with-cityscape::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 200px; 
    background: url('Images/marsh_background_image_2.png') no-repeat center bottom; 
    background-size: cover; 
    opacity: 0.15; 
    pointer-events: none;
    animation: subtlePulse 8s ease-in-out infinite;
}
@keyframes subtlePulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.2; }
}
.page-header h1 { 
    margin: 0 0 10px 0; 
    font-size: 36px; 
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}
.page-header p { 
    margin: 0; 
    font-size: 16px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Section Title */
.section-title { 
    text-align: center; 
    color: #002C77; 
    font-size: 28px; 
    font-weight: 700; 
    margin: 50px 0 40px 0;
    position: relative;
}
.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 3px; 
    background: linear-gradient(90deg, #002C77, #00A8C8); 
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Admin page section title variant (left-aligned, simpler) */
.admin-tile-grid + h2.section-title,
h2.section-title + .admin-tile-grid {
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 44, 119, 0.1);
}
.admin-tile-grid + h2.section-title::after,
h2.section-title + .admin-tile-grid::after {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* Action Cards */
.action-card-container { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
    margin: 40px 0; 
}
.action-card { 
    background: #fff; 
    border: 2px solid #e5e5e5; 
    border-radius: 8px; 
    padding: 30px; 
    text-align: center; 
    cursor: pointer; 
    box-shadow: 0 2px 12px rgba(0, 44, 119, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #002C77, #00A8C8);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-card:hover::before {
    transform: scaleX(1);
}
.action-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 44, 119, 0.15);
    border-color: #00A8C8;
}
.action-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 6px; 
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-card:hover img {
    transform: scale(1.05);
}
.action-card-icon { 
    font-size: 48px; 
    margin-bottom: 20px;
    display: none; /* Hide malformed icons */
}
.action-card h3 { 
    font-size: 18px; 
    font-weight: 700; 
    color: #002C77; 
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.action-card:hover h3 {
    color: #00A8C8;
}
.action-card p { 
    color: #6C757D; 
    margin: 0; 
    font-size: 14px;
    line-height: 1.6;
}

/* Intro Text - Clean centered text block */
.intro-text {
    text-align: center;
}
.intro-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #002C77;
    margin: 0 0 16px 0;
    line-height: 1.4;
}
.intro-text p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}
.intro-text .warning-text {
    color: #d32f2f;
    font-weight: 500;
    font-size: 14px;
    margin-top: 15px !important;
}

/* Insurer Logo */
.insurer-logo-large {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid #e0e7f0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00A8C8;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Info Box */
.info-box { 
    display: flex; 
    padding: 30px 35px; 
    margin: 0 0 40px 0; 
    border-radius: 12px; 
    border: 2px solid #e0e7f0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 44, 119, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #002C77 0%, #00A8C8 100%);
    transition: width 0.3s ease;
}
.info-box:hover {
    box-shadow: 0 6px 24px rgba(0, 44, 119, 0.1);
    border-color: #00A8C8;
}
.info-box:hover::before {
    width: 8px;
}
.info-box-primary { 
    background: linear-gradient(135deg, rgba(0, 44, 119, 0.02) 0%, rgba(0, 168, 200, 0.02) 100%);
    margin-bottom: 20px;
}
.info-box-icon { 
    font-size: 32px; 
    margin-right: 20px;
    display: none; /* Hide malformed icons */
}
.info-box-content h4 { 
    margin: 0 0 12px 0; 
    font-size: 20px; 
    font-weight: 700; 
    color: #002C77;
    line-height: 1.4;
}
.info-box-content p { 
    margin: 0; 
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
}

/* ========================================
   Admin Portal Tiles
   ======================================== */
.admin-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.admin-tile {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.admin-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 44, 119, 0.15);
    border-color: #00A8C8;
}

.admin-tile:active {
    transform: translateY(-2px);
}

.admin-tile-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.admin-tile h3 {
    color: #002C77;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.admin-tile p {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   Info Sections (for ProductsClean, etc)
   ======================================== */
.info-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #002C77;
}

.info-section h3 {
    color: #002C77;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section p {
    margin: 8px 0;
    line-height: 1.6;
    color: #424242;
}

.info-section a {
    color: #00A8C8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.info-section a:hover {
    color: #002C77;
    text-decoration: underline;
}

.contact-highlight {
    background: linear-gradient(135deg, rgba(0, 44, 119, 0.05), rgba(0, 168, 200, 0.05));
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.network-path {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    display: inline-block;
    margin: 8px 0;
    border: 1px solid #e0e0e0;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 44, 119, 0.2), transparent);
    margin: 30px 0;
}

/* ========================================
   Error Page Styles
   ======================================== */
.error-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
}

.error-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(211, 47, 47, 0.3));
}

.error-title {
    color: #d32f2f;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: #424242;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.error-message p {
    margin: 0 0 15px 0;
}

.error-message p:last-child {
    margin-bottom: 0;
}

.error-details-panel {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 44, 119, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.error-details-panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.error-details-toggle {
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.error-details-toggle:hover {
    background: rgba(0, 44, 119, 0.03);
}

.error-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.error-details-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #002C77;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-icon.expanded i {
    transform: rotate(90deg);
    display: inline-block;
}

.error-details-content {
    display: none;
    margin: 0 20px 20px 20px;
    padding: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    color: #333;
    border: 1px solid #e0e0e0;
}

.error-details-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.error-details-content::-webkit-scrollbar {
    width: 10px;
}

.error-details-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.error-details-content::-webkit-scrollbar-thumb {
    background: rgba(0, 44, 119, 0.3);
    border-radius: 10px;
}

.error-details-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 44, 119, 0.5);
}

.copy-btn {
    padding: 8px 16px;
    background: #002C77;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #00408f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 44, 119, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #00A8C8;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 168, 200, 0.4);
    z-index: 10000;
}

.copy-success.show {
    display: block;
    animation: slideInOut 3s ease;
}

@keyframes slideInOut {
    0% { 
        opacity: 0; 
        transform: translateX(100px);
    }
    10%, 90% { 
        opacity: 1; 
        transform: translateX(0);
    }
    100% { 
        opacity: 0; 
        transform: translateX(100px);
    }
}

.home-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 44, 119, 0.2);
}

.home-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 44, 119, 0.3);
}

.home-link:active {
    transform: translateY(0);
}

/* ========================================
   Products Card Design (Cleaner, Modern)
   ======================================== */
.products-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 44, 119, 0.08);
    border: 1px solid rgba(0, 44, 119, 0.08);
    transition: all 0.3s ease;
}

.products-card:hover {
    box-shadow: 0 8px 32px rgba(0, 44, 119, 0.15);
    transform: translateY(-2px);
}

.products-card-header {
    background: linear-gradient(135deg, #002C77 0%, #00408f 100%);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.products-card-header i {
    font-size: 32px;
    opacity: 0.9;
}

.products-card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.products-card.primary .products-card-header {
    background: linear-gradient(135deg, #00A8C8 0%, #00C8E8 100%);
}

.products-card.accent .products-card-header {
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%);
}

.products-card-body {
    padding: 30px;
}

.lead-text {
    font-size: 15px;
    color: #424242;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0, 44, 119, 0.05), rgba(0, 168, 200, 0.05));
    border: 2px solid #00A8C8;
    border-radius: 10px;
    color: #002C77;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.contact-link:hover {
    background: linear-gradient(135deg, #00A8C8, #00C8E8);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 168, 200, 0.3);
}

.contact-link i {
    font-size: 18px;
}

.network-path-box {
    background: #f8f9fa;
    border: 2px solid #e0e8f0;
    border-radius: 10px;
    padding: 4px 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.network-path-box i.fa-folder-open {
    font-size: 24px;
    color: #00A8C8;
    flex-shrink: 0;
}

.network-path-box code {
    flex: 1;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #002C77;
    background: transparent;
    padding: 0;
    border: none;
    word-break: break-all;
}

.copy-path-btn {
    background: #00A8C8;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-path-btn:hover {
    background: #00C8E8;
    transform: scale(1.05);
}

.copy-path-btn:active {
    transform: scale(0.98);
}

.copy-path-btn i {
    font-size: 16px;
}

.helper-text {
    font-size: 13px;
    color: #6C757D;
    font-style: italic;
    margin: 10px 0 0 0;
}

.divider-or {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider-or::before,
.divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 44, 119, 0.2), transparent);
}

.divider-or::before {
    left: 0;
}

.divider-or::after {
    right: 0;
}

.divider-or span {
    background: #fff;
    padding: 0 20px;
    color: #6C757D;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-item {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: rgba(0, 168, 200, 0.03);
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #00A8C8;
    transition: all 0.3s ease;
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-item:hover {
    background: rgba(0, 168, 200, 0.06);
    transform: translateX(4px);
}

.resource-icon {
    background: linear-gradient(135deg, #00A8C8, #00C8E8);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 168, 200, 0.3);
}

.resource-icon i {
    font-size: 26px;
}

.resource-content {
    flex: 1;
}

.resource-content h4 {
    margin: 0 0 8px 0;
    color: #002C77;
    font-size: 16px;
    font-weight: 600;
}

.resource-link {
    color: #00A8C8;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.resource-link:hover {
    color: #002C77;
    gap: 10px;
}

.resource-link i.fa-external-link {
    font-size: 12px;
}

/* Footer - Full Width */
.footer { 
    background: #002C77; 
    color: #fff; 
    padding: 20px 0; 
    margin: 0;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 44, 119, 0.15), 0 -2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Subtle gradient feather at top of footer */
.footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0, 44, 119, 0) 0%, rgba(0, 44, 119, 0.03) 100%);
    pointer-events: none;
}
.footer .container { display: flex; flex-direction: column; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer a { color: #fff; text-decoration: none; font-size: 13px; }
.footer a:hover { opacity: 0.8; }
.copyright { 
    background: #001f5a; 
    color: #fff; 
    text-align: center; 
    padding: 5px; 
    font-size: 12px; 
    width: 100%;
    margin: 0;
}

/* ========================================
   Osano Cookie Consent Customization
   ======================================== */
.osano-cm-link {
    color: #fff !important;
}
.osano-cm-widget {
    z-index: 10000 !important;
}

/* ========================================
   Modal Dialog Styling
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%);
    color: #fff;
    padding: 20px 30px;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.modal-body {
    padding: 30px;
    line-height: 1.8;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #2C3E50;
    font-size: 14px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: #002C77;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Profile Link Styling */
.profile-link {
    font-weight: 600;
    padding: 4px 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.profile-link:hover {
    text-decoration: underline !important;
}

/* Account Dropdown Styling */
.account-dropdown {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #d0d7e2;
    border-radius: 8px;
    background: #fff;
    color: #2C3E50;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.account-dropdown:hover {
    border-color: #00A8C8;
    background: #f8fbff;
}

.account-dropdown:focus {
    border-color: #002C77;
    box-shadow: 0 0 0 4px rgba(0, 44, 119, 0.12);
    background: #fff;
}

.account-dropdown option {
    padding: 14px 18px;
    font-size: 15px;
    background: #fff !important;
    color: #2C3E50 !important;
    line-height: 1.8;
    border-radius: 4px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.account-dropdown option:checked {
    background: #002C77 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.account-dropdown option:hover {
    background: #e8f4f8 !important;
    color: #002C77 !important;
}

/* Additional select styling for better visibility */
select.account-dropdown {
    background-color: #ffffff;
    color: #2C3E50;
}

select.account-dropdown:focus {
    background-color: #ffffff;
    color: #2C3E50;
}

/* Ensure dropdown options are always visible - browser fallback */
select option {
    background-color: #ffffff !important;
    color: #2C3E50 !important;
}

select option:checked {
    background-color: #002C77 !important;
    color: #ffffff !important;
}

select option:hover {
    background-color: #e8f4f8 !important;
    color: #002C77 !important;
}

/* Enhanced Account Modal Specific Styles */
#accountModal .modal-dialog {
    max-width: 550px;
}

#accountModal .modal-header {
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%) !important;
    color: #fff !important;
    padding: 20px 30px;
}

#accountModal .modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff !important;
}

#accountModal .modal-body {
    padding: 35px 40px;
}

#accountModal .modal-body > p:first-child {
    font-size: 15px;
    font-weight: 500;
    color: #002C77;
    margin-bottom: 12px;
}

#accountModal .modal-body > p:nth-child(2) {
    color: #6C757D;
    font-size: 13px;
    margin-bottom: 25px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #00A8C8;
    border-radius: 4px;
}

#accountModal .account-dropdown {
    font-size: 16px;
    padding: 16px 20px;
    min-height: 56px;
}

#accountModal .modal-footer {
    padding: 25px 40px;
}

#accountModal .btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
}

/* Login Modal Specific Styles */
#loginModal .modal-dialog {
    max-width: 650px;
}

#loginModal .modal-header {
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%) !important;
    color: #fff !important;
    padding: 20px 30px;
}

#loginModal .modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff !important;
}

#loginModal .modal-body p {
    font-size: 14px;
    line-height: 1.8;
}

#loginModal .modal-body p:first-child {
    font-size: 15px;
    margin-bottom: 20px;
}

#loginModal .modal-body p strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Vehicle Email Modal Specific Styles */
#vehicleEmailModal .modal-dialog {
    max-width: 550px;
}

#vehicleEmailModal .modal-header {
    background: linear-gradient(135deg, #002C77 0%, #00A8C8 100%) !important;
    color: #fff !important;
    padding: 20px 30px;
}

#vehicleEmailModal .modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff !important;
}

#vehicleEmailModal .modal-body {
    padding: 30px;
}

#vehicleEmailModal .modal-body #vehicleEmailInfo {
    color: #002C77 !important;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ========================================
   Loading Overlay & Spinner
   ======================================== */

/* Semi-transparent gray overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Loading spinner container */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Spinner animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #00A8C8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading text */
.loading-text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dialog visibility fix */
#PleaseWaitDialog[style*="display: block"] {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

/* ========================================
   Tabs
   ======================================== */
.tab-container {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 44, 119, 0.08);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #E0E8F0;
    background: #F8F9FA;
    overflow-x: auto;
}

.tab-nav-item {
    padding: 18px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6C757D;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: #002C77;
    background: rgba(0, 44, 119, 0.05);
}

.tab-nav-item.active {
    color: #002C77;
    background: white;
    border-bottom-color: #00A8C8;
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Form Sections
   ======================================== */
.form-section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 44, 119, 0.15);
    border: 1px solid #D0D8E0;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 6px 16px rgba(0, 44, 119, 0.18);
    border-color: #B0BED0;
}

.form-section-header {
    font-size: 18px;
    font-weight: 600;
    color: #002C77;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E8F0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Mobile-first: ensure form-row can shrink below 250px on very small screens */
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #D0D8E0;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #00A8C8;
    box-shadow: 0 0 0 4px rgba(0, 168, 200, 0.12);
    background: #fff;
}

.form-control:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="date"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: #B0BED0;
}

/* Ensure date inputs have proper width and spacing */
input[type="date"] {
    min-height: 44px;
}

/* Remove browser default date picker styling in some browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #E0E8F0;
}

.form-group-full {
    grid-column: span 2;
}

.form-group-button {
    display: flex;
    align-items: flex-end;
}

.radio-group {
    padding-top: 8px;
    display: flex;
    gap: 20px;
}

.form-check-inline {
    margin-right: 0;
}

.listbox-teams {
    height: 150px;
}

.intro-text-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.intro-text-content {
    flex: 1;
}

.intro-text-logo {
    flex-shrink: 0;
}

.form-terms-text {
    margin-top: 15px;
    color: #6C757D;
}

.upload-message {
    display: block;
    margin-top: 15px;
}

.date-display {
    white-space: nowrap;
}

.time-display {
    color: #6C757D;
}

/* Upload Components */
.upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 44, 119, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.upload-card h3 {
    color: #002C77;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-steps {
    background: #F8F9FA;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.upload-steps ol {
    margin: 0;
    padding-left: 20px;
}

.upload-steps li {
    color: #495057;
    padding: 8px 0;
    font-size: 15px;
}

.upload-steps li strong {
    color: #002C77;
}

.file-upload-section {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    border: 1px solid #D0D8E0;
    box-shadow: 0 2px 8px rgba(0, 44, 119, 0.1);
}

.file-upload-wrapper {
    margin-bottom: 20px;
}

.file-upload-input {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 15px;
    padding: 12px;
    border: 2px dashed #CED4DA;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-input:hover {
    border-color: #667eea;
    background: #F0F2FF;
}

.btn-upload {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.35);
}

.btn-upload:active {
    transform: translateY(0);
}

.message-success {
    color: #28A745;
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    display: inline-block;
    font-weight: 500;
}

.message-error {
    color: #DC3545;
    background: #F8D7DA;
    border: 1px solid #F5C6CB;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    display: inline-block;
    font-weight: 500;
}

.history-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 44, 119, 0.15);
    border: 1px solid #D0D8E0;
    padding: 30px;
    transition: all 0.3s ease;
}

.history-section:hover {
    box-shadow: 0 6px 16px rgba(0, 44, 119, 0.18);
    border-color: #B0BED0;
}

.history-section h3 {
    color: #002C77;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upload-table th {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-table th:first-child {
    border-radius: 8px 0 0 0;
}

.upload-table th:last-child {
    border-radius: 0 8px 0 0;
    border-right: none;
}

.upload-table td {
    padding: 16px 20px;
    border: none;
    border-top: 1px solid #F0F0F0;
    color: #333;
    font-size: 14px;
}

.upload-table tbody tr {
    background: #fff;
    transition: all 0.2s ease;
}

.upload-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.upload-table tbody tr:hover {
    background: #F5F9FA;
    box-shadow: inset 0 0 0 1px #E8F4F8;
}

.upload-table tbody tr:first-child td {
    border-top: none;
}

.upload-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: #D4EDDA;
    color: #155724;
}

.status-processing {
    background: #FFF3CD;
    color: #856404;
}

.status-completed {
    background: #CCE5FF;
    color: #004085;
}

.status-error {
    background: #F8D7DA;
    color: #721C24;
}

.action-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6C757D;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    color: #495057;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.empty-state p {
    margin: 0;
    font-size: 15px;
}

@media (max-width: 768px) {
    .upload-card,
    .history-section {
        padding: 20px;
    }

    .upload-table th,
    .upload-table td {
        padding: 10px;
        font-size: 13px;
    }
}

/* User Management */
.user-type-selection {
    max-width: 1000px;
    margin: 0 auto;
}

.selection-instructions {
    text-align: center;
    font-size: 16px;
    color: #495057;
    margin-bottom: 30px;
}

.user-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.user-type-card {
    background: white;
    border: 2px solid #E0E8F0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #002C77;
    transition: all 0.3s ease;
    display: block;
}

.user-type-card:hover {
    border-color: #00A8C8;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 44, 119, 0.15);
}

.user-type-icon {
    font-size: 48px;
    color: #00A8C8;
    margin-bottom: 15px;
}

.user-type-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #002C77;
}

.user-type-card p {
    margin: 0;
    color: #6C757D;
    font-size: 14px;
}

.signup-note {
    text-align: center;
    margin-top: 30px;
}

.signup-note p {
    color: #495057;
    font-size: 15px;
}

.signup-note a {
    color: #002C77;
    font-weight: 600;
    text-decoration: none;
}

.signup-note a:hover {
    color: #00A8C8;
    text-decoration: underline;
}

/* ========================================
   Document Cards (Information Pages)
   ======================================== */
.document-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid #E0E8F0;
    border: 1px solid #E0E8F0;
    border-left: 3px solid #00A8C8;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-left-color: #002C77;
}

.document-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.document-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #002C77;
    margin: 0;
    flex: 1;
}

.document-card-subtitle {
    font-size: 13px;
    color: #6C757D;
    font-weight: 400;
    margin-left: 12px;
}

.document-card-date {
    font-size: 13px;
    color: #6C757D;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.document-card-date i {
    font-size: 12px;
}

.document-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.document-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
}

.document-info-content {
    flex: 1;
}

.document-info-label {
    font-size: 11px;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.document-info-value {
    font-size: 13px;
    color: #002C77;
    font-weight: 600;
}

.document-card-action {
    padding: 8px 20px;
    background: #002C77;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.document-card-action:hover {
    background: #00A8C8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 44, 119, 0.3);
}

.document-card-action i {
    font-size: 12px;
}

.document-card-action-secondary {
    background: #6C757D;
    margin-left: 8px;
}

.document-card-action-secondary:hover {
    background: #5A6268;
}

/* Document icon removed for compact design */

/* ========================================
   ALERT STYLES
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.alert-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-warning {
    background-color: #FFF3CD;
    border-color: #FFEAA7;
    color: #856404;
}

.alert-warning i {
    color: #F39C12;
}

.alert-info {
    background-color: #D1ECF1;
    border-color: #BEE5EB;
    color: #0C5460;
}

.alert-info i {
    color: #17A2B8;
}

.alert-success {
    background-color: #D4EDDA;
    border-color: #C3E6CB;
    color: #155724;
}

.alert-success i {
    color: #28A745;
}

.alert-danger, .alert-error {
    background-color: #F8D7DA;
    border-color: #F5C6CB;
    color: #721C24;
}

.alert-danger i, .alert-error i {
    color: #DC3545;
}

/* Search Cards */
.search-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #002C77;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-card-description {
    margin: 0 0 20px 0;
    color: #6C757D;
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-form .form-group {
    flex: 1;
    min-width: 250px;
}

.search-btn {
    padding: 10px 30px;
    background: #002C77;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
    height: 42px;
    align-self: flex-end;
}

.search-btn:hover {
    background: #004494;
}

.search-result-section {
    margin-top: 30px;
}

/* Results container - removed display:none as ASP.NET Visible handles visibility */
.results-container {
    margin-bottom: 30px;
}

.results-container.visible {
    display: block;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 44, 119, 0.05), rgba(0, 168, 200, 0.05));
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(0, 44, 119, 0.1);
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #002C77;
    margin-bottom: 8px;
}

.stat-card-label {
    font-size: 14px;
    color: #6C757D;
    font-weight: 500;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6C757D;
}

.empty-state-icon {
    font-size: 64px;
    color: #DEE2E6;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 16px;
    color: #6C757D;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table th {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th:first-child {
    border-radius: 8px 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 8px 0 0;
    border-right: none;
}

.data-table td {
    padding: 16px 20px;
    border: none;
    border-top: 1px solid #F0F0F0;
    color: #333;
    font-size: 14px;
}

.data-table tbody tr {
    background: #fff;
    transition: all 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.data-table tbody tr:hover {
    background: #F5F9FA;
    box-shadow: inset 0 0 0 1px #E8F4F8;
}

.data-table tbody tr:first-child td {
    border-top: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.message-info {
    display: block;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #E7F3FF;
    border: 1px solid #B3D9FF;
    color: #004085;
}

/* ========================================
   Modern Table Styles - Clean Minimal Design
   ======================================== */

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modern-table thead {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #fff;
}

.modern-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table th:last-child {
    border-right: none;
}

.modern-table tbody tr {
    background: #fff;
    transition: all 0.2s ease;
}

.modern-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.modern-table td {
    padding: 16px 20px;
    border: none;
    border-top: 1px solid #F0F0F0;
    color: #333;
    font-size: 14px;
}

.modern-table tbody tr:hover {
    background: #F5F9FA;
    box-shadow: inset 0 0 0 1px #E8F4F8;
}

.modern-table tbody tr:first-child td {
    border-top: none;
}

.table-link {
    color: #006B8F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.table-link:hover {
    color: #00A8C8;
    text-decoration: none;
}

/* Footer pagination styling */
.modern-table tfoot td {
    background: #FAFAFA;
    border-top: 2px solid #E0E0E0;
    padding: 15px 20px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Table container for scrollable tables */
.table-container {
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

/* For tables that need vertical scrolling */
.table-container.with-max-height {
    max-height: 400px;
}

/* Ensure tables don't break out of container */
.table-container table,
.table-container .modern-table,
.table-container .gridView,
.table-container .data-table,
.table-container .upload-table {
    min-width: 100%;
    width: max-content;
    max-width: none;
}
/* Responsive table wrapper - auto-wraps any table for overflow */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    max-height: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Scrollbar styling for modern look */
.table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #BDBDBD;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #9E9E9E;
}

/* Visual indicator for horizontal scroll - right shadow fade */
.table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 20px;
    width: 30px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-responsive.has-scroll::after {
    opacity: 1;
}

/* Make GridView tables more compact for better fit */
.gridView th,
.customGridView th,
.data-table th,
.upload-table th,
.modern-table th,
table th {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gridView td,
.customGridView td {
    white-space: normal;
    word-wrap: break-word;
}

/* Sticky header for scrolling tables */
.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #292929;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover effect on table rows for better UX */
.table-responsive table tbody tr {
    transition: all 0.2s ease;
}

/* Scroll hint at bottom of table */
.table-scroll-hint {
    text-align: center;
    padding: 8px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03));
    color: #666;
    font-size: 12px;
    font-style: italic;
    border-top: 1px solid #E0E0E0;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* Ensure all inputs and controls can shrink */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea,
.form-control {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Tablet and below (992px) */
@media (max-width: 992px) {
    /* Form layouts stack on tablet */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    /* Stats cards stack on tablet */
    .stats-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Action cards stack */
    .action-card-container {
        flex-direction: column;
    }
    
    .action-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Grid layouts adjust */
    .admin-tile-grid,
    .action-card-grid,
    .user-type-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    /* Table actions stack */
    .table-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .table-search {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Mobile (992px and below) - Show burger menu earlier */
@media (max-width: 992px) {
    /* Hide desktop menu, show burger menu at tablet size */
    .main-nav-inline {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Reduce container padding on mobile */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Reduce section padding */
    .form-section, .info-box, .search-card {
        padding: 20px 15px;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* All grids become single column on mobile */
    .admin-tile-grid,
    .action-card-container,
    .action-card-grid,
    .user-type-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
    }
    
    /* Product blocks full width */
    .product-block,
    .product-card,
    .info-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Full width buttons on mobile */
    .form-actions {
        flex-direction: column;
    }
    
    .btn, .btn-primary, .btn-secondary {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Search inputs full width */
    .table-search,
    .search-input,
    .form-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Document cards adjust */
    .document-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-card-action {
        width: 100%;
        margin-top: 10px;
        margin-left: 0 !important;
        justify-content: center;
    }
    
    /* Modal full width on mobile */
    .modal-dialog {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    /* Tab navigation stack */
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-nav-item {
        width: 100%;
        text-align: center;
        border-radius: 0;
    }
    
    .tab-nav-item:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .tab-nav-item:last-child {
        border-radius: 0 0 8px 8px;
    }
    
    /* Reduce header text size */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    /* Hide less critical columns in tables on mobile */
    .table-responsive table th:nth-child(n+4),
    .table-responsive table td:nth-child(n+4) {
        display: none;
    }
    
    /* Alert adjustments */
    .alert {
        padding: 12px 15px;
    }
    
    .alert-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hide desktop menu, show burger menu */
    .main-nav-inline {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Make tables fully responsive */
    .results-table,
    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }
    
    .results-table th,
    .results-table td {
        min-width: 100px;
        white-space: nowrap;
    }
    
    /* Mobile navigation menu */
    .mobile-nav-menu {
        display: block;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    /* Remove all container margins/padding for full width */
    .container {
        padding: 0 10px;
        margin: 0;
        max-width: 100%;
    }
    
    .main-content {
        padding: 15px 10px;
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    /* Full width content sections */
    .form-section,
    .info-box,
    .search-card,
    .results-container,
    .admin-tile-grid,
    .action-card-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        border-radius: 0 !important;
    }
    
    /* Further reduce text sizes */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Tighter spacing */
    .form-section, .info-box {
        padding: 15px 10px;
    }
    
    /* Full width inputs - critical for mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea,
    .form-control {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    /* Force all buttons to full width with no constraints */
    .btn,
    .btn-primary,
    .btn-secondary,
    button,
    input[type="button"],
    input[type="submit"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Adjust document card layout */
    .document-card {
        padding: 15px 10px;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .document-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-card-subtitle,
    .document-card-date {
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* Stack document info items */
    .document-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Admin/Action tiles even smaller */
    .admin-tile,
    .action-card,
    .user-type-card,
    .product-block {
        padding: 15px 10px;
        margin: 5px 0;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .admin-tile-icon,
    .action-card-icon {
        font-size: 32px;
    }
    
    /* Ensure card content wraps */
    .admin-tile h3,
    .action-card h3,
    .user-type-card h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Remove box shadows and borders on very small screens */
    .form-section,
    .info-box,
    .document-card,
    .admin-tile,
    .action-card {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
}

/* Mobile Navigation Menu Styles */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: transparent;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #002C77;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    display: block;
    right: 0;
}

.mobile-nav-header {
    background: #001a47;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10001;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10001;
}

.mobile-nav-items li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-items a {
    display: block;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav-items a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.mobile-nav-overlay.active {
    display: block;
}





