/**
 * Modern Design CSS - Complete Redesign
 * Professional, clean, and modern design for all components
 * Applied globally for admin + selectively for auth (login)
 */

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
.modern-design-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modern-design-page * {
    box-sizing: border-box;
}

/* ============================================
   SIDEBAR - COMPLETE REDESIGN WITH MODULE COLORS
   ============================================ */
.modern-design-page #sidebar {
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    border-right: none;
    min-height: 100vh;
    position: fixed;
    overflow: hidden;
}

/* Billing Module - Blue (Vibrant) */
body.module-billing.modern-design-page #sidebar,
body.module-billing #sidebar {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%) !important;
}

/* License Module - Purple (Vibrant) */
body.module-license.modern-design-page #sidebar,
body.module-license #sidebar {
    background: linear-gradient(180deg, #6f42c1 0%, #5a32a3 100%) !important;
}

/* PNL Module - Teal (Vibrant) */
body.module-pnl.modern-design-page #sidebar,
body.module-pnl #sidebar {
    background: linear-gradient(180deg, #20c997 0%, #198754 100%) !important;
}

/* Audit & Training Module - Orange (Vibrant) */
body.module-audit-training.modern-design-page #sidebar,
body.module-audit-training #sidebar {
    background: linear-gradient(180deg, #fd7e14 0%, #dc6502 100%) !important;
}

/* Task Management Module - Cyan (Vibrant) */
body.module-task-management.modern-design-page #sidebar,
body.module-task-management #sidebar {
    background: linear-gradient(180deg, #0abde3 0%, #0899b8 100%) !important;
}

/* Assets Management Module - Green (Vibrant) */
body.module-assets-management.modern-design-page #sidebar,
body.module-assets-management #sidebar {
    background: linear-gradient(180deg, #146c43 0%, #0f5132 100%) !important;
}

/* Home Module - Default Blue */
body.module-home.modern-design-page #sidebar,
body.module-home #sidebar {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%) !important;
}

.modern-design-page #sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.modern-design-page #sidebar .sidebar-logo-div {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    height: 100vh;
}

.modern-design-page #sidebar .sidebar-logo-img {
    text-align: center;
}

.modern-design-page #sidebar .sidebar-logo-img .logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    /* border: 4px solid rgba(255, 255, 255, 0.3); */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1rem;
    display: block;
    transition: all 0.3s ease;
}

.modern-design-page #sidebar .sidebar-logo-img .logo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modern-design-page #sidebar .sidebar-logo-img p {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-design-page #sidebar .sidebar-cross {
    text-align: right;
    margin-bottom: 1rem;
}

.modern-design-page #sidebar .sidebar-cross span {
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modern-design-page #sidebar .sidebar-cross span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modern-design-page #sidebar ul {
    padding: 1rem 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modern-design-page #sidebar ul li {
    margin: 0.25rem 0;
    padding: 0 1rem;
}

.modern-design-page #sidebar ul li a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-design-page #sidebar ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ffffff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.modern-design-page #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-design-page #sidebar ul li a:hover::before {
    transform: scaleY(1);
}

.modern-design-page #sidebar ul li.active>a {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modern-design-page #sidebar ul li.active>a::before {
    transform: scaleY(1);
    background: #ffffff;
    width: 4px;
}

/* Module-specific active states - More visible */
body.module-billing.modern-design-page #sidebar ul li.active>a,
body.module-billing.modern-design-page #sidebar ul li a:hover,
body.module-billing #sidebar ul li.active>a,
body.module-billing #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

body.module-license.modern-design-page #sidebar ul li.active>a,
body.module-license.modern-design-page #sidebar ul li a:hover,
body.module-license #sidebar ul li.active>a,
body.module-license #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

body.module-pnl.modern-design-page #sidebar ul li.active>a,
body.module-pnl.modern-design-page #sidebar ul li a:hover,
body.module-pnl #sidebar ul li.active>a,
body.module-pnl #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

body.module-audit-training.modern-design-page #sidebar ul li.active>a,
body.module-audit-training.modern-design-page #sidebar ul li a:hover,
body.module-audit-training #sidebar ul li.active>a,
body.module-audit-training #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

body.module-task-management.modern-design-page #sidebar ul li.active>a,
body.module-task-management.modern-design-page #sidebar ul li a:hover,
body.module-task-management #sidebar ul li.active>a,
body.module-task-management #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

body.module-assets-management.modern-design-page #sidebar ul li.active>a,
body.module-assets-management.modern-design-page #sidebar ul li a:hover,
body.module-assets-management #sidebar ul li.active>a,
body.module-assets-management #sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.modern-design-page #sidebar ul li a img,
.modern-design-page #sidebar ul li a svg {
    width: 20px !important;
    height: 20px !important;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.modern-design-page #sidebar ul li a:hover img,
.modern-design-page #sidebar ul li a:hover svg {
    transform: scale(1.1);
}

.modern-design-page #sidebar .footer {
    display: none !important;
}

/* Dropdown menus in sidebar */
.modern-design-page #sidebar ul li.dropdown ul {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 0.5rem 0 0 1rem;
    padding: 0.5rem 0;
}

.modern-design-page #sidebar ul li.dropdown ul li a {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem;
}

/* ============================================
   HEADER / TOP BAR - COMPLETE REDESIGN
   ============================================ */
.modern-design-page .navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    margin-bottom: 0 !important;
    border-radius: 0;
}

.modern-design-page .navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-design-page #sidebarCollapse {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.625rem 1rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.modern-design-page #sidebarCollapse:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modern-design-page .navbar .d-flex {
    align-items: center;
    gap: 1rem;
}

.modern-design-page .navbar .d-flex>div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    font-weight: 500;
}

.modern-design-page .user-profile-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-design-page .user-profile-img:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.common-btn-color {
    height: 42px !important;
}

.modern-design-page .navbar .common-btn-color {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.625rem 1rem;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modern-design-page .navbar .common-btn-color:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff !important;
}

/* ============================================
   TYPOGRAPHY - ENHANCED
   ============================================ */
.modern-design-page h1,
.modern-design-page h2,
.modern-design-page h3,
.modern-design-page h4,
.modern-design-page h5,
.modern-design-page h6 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.modern-design-page h3 {
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    color: #141414;
    margin-top: 20px;
}

.modern-design-page p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    margin-top: 20px;
}

/* ============================================
   CARDS - MODERN DESIGN
   ============================================ */
.modern-design-page .brand-card-sec {
    padding: 2rem 1.5rem;
    background: transparent;
}

.modern-design-page .card {
    margin-bottom: 2rem;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.modern-design-page .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.modern-design-page .card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.modern-design-page .card:hover::before {
    transform: scaleX(1);
}

.modern-design-page .card-body {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    position: relative;
}

.modern-design-page .company_logo {
    width: 160px;
    height: 140px;
    margin: 1.5rem auto 1.5rem;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.modern-design-page .card:hover .company_logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.modern-design-page .card-title {
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ============================================
   BUTTONS - MODERN & BEAUTIFUL
   ============================================ */
.modern-design-page .login-btn,
.modern-design-page .common-btn-color {
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 42px;
    line-height: 1.5;
}

.modern-design-page .common-btn-color svg {
    width: 16px !important;
    height: 16px !important;
    fill: #ffffff !important;
    stroke: none !important;
    filter: none !important;
    display: inline-block;
    vertical-align: middle;
}

.modern-design-page .login-btn::before,
.modern-design-page .common-btn-color::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-design-page .login-btn:hover::before,
.modern-design-page .common-btn-color:hover::before {
    width: 300px;
    height: 300px;
}

.modern-design-page .login-btn:hover,
.modern-design-page .common-btn-color:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.modern-design-page .login-btn:active,
.modern-design-page .common-btn-color:active {
    transform: translateY(-1px);
}

.modern-design-page .seach-common-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.modern-design-page .seach-common-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ============================================
   FORMS & INPUTS - MODERN STYLING
   ============================================ */
.modern-design-page .form-control,
.modern-design-page .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 5px !important;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #495057;
    height: 42px;
    min-height: 42px;
    line-height: 1.5;
}

.responsive-clss {
    overflow-x: auto;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #898989;

}

.select2-selection__rendered {
    margin-bottom: 0 !important;
    display: block !important;
    width: 100%;
}

.select2-container--default .select2-search--inline .select2-search__field {
    font-family: "Roboto Condensed", sans-serif !important;
    width: 100%;
}

.modern-design-page .form-control:focus,
.modern-design-page .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.modern-design-page .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.modern-design-page .input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.modern-design-page .input-group .form-control {
    flex: 1;
    height: 42px;
    /* border: none; */
}

.modern-design-page .input-group .btn,
.modern-design-page .input-group button {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    color: #fff !important;
}

/* Fix for desktop-bill-tabs form inputs */
.modern-design-page .desktop-bill-tabs input[type="text"],
.modern-design-page .desktop-bill-tabs .form-control {
    height: 42px;
    padding: 0.625rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.modern-design-page .desktop-bill-tabs button,
.modern-design-page .desktop-bill-tabs .btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
}

/* Fix for desktop-filters inputs and buttons */
.modern-design-page .desktop-filters input[type="text"],
.modern-design-page .desktop-filters input,
.modern-design-page .desktop-filters .form-control,
.modern-design-page .desktop-filters select {
    height: 42px !important;
    padding: 0.625rem 1rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: 0.9375rem !important;
}

.modern-design-page .desktop-filters button,
.modern-design-page .desktop-filters .btn,
.modern-design-page .desktop-filters .common-btn-color {
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 10px !important;
    /* border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important; */
}

.modern-design-page .search-desktop-btn button,
.modern-design-page .search-desktop-btn .btn {
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.5rem !important;
}

/* ============================================
   TABLES - PROFESSIONAL DESIGN
   ============================================ */
.modern-design-page .page-table {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 1.5rem;
    border: 1px solid #e9ecef;
    overflow-x: auto;
}

.modern-design-page .billing-new-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.modern-design-page .billing-new-table thead {
    background: #2c3e50;
    position: relative;
}



/* Module-specific table header colors */
body.module-billing.modern-design-page .billing-new-table thead,
body.module-billing .billing-new-table thead {
    background: #0d6efd !important;
}

body.module-license.modern-design-page .billing-new-table thead,
body.module-license .billing-new-table thead {
    background: #6f42c1 !important;
}

body.module-pnl.modern-design-page .billing-new-table thead,
body.module-pnl .billing-new-table thead {
    background: #20c997 !important;
}

body.module-audit-training.modern-design-page .billing-new-table thead,
body.module-audit-training .billing-new-table thead {
    background: #fd7e14 !important;
}

body.module-task-management.modern-design-page .billing-new-table thead,
body.module-task-management .billing-new-table thead {
    background: #0abde3 !important;
}

body.module-assets-management.modern-design-page .billing-new-table thead,
body.module-assets-management .billing-new-table thead {
    background: #146c43 !important;
}

/* Fix table header hover - prevent white background */
.modern-design-page .billing-new-table thead th {
    transition: background-color 0.2s ease !important;
}

.modern-design-page .billing-new-table thead th:hover {
    background: inherit !important;
    color: #ffffff !important;
}

body.module-billing.modern-design-page .billing-new-table thead th:hover,
body.module-billing .billing-new-table thead th:hover {
    background: #0b5ed7 !important;
    color: #ffffff !important;
}

body.module-license.modern-design-page .billing-new-table thead th:hover,
body.module-license .billing-new-table thead th:hover {
    background: #5b36a1 !important;
    color: #ffffff !important;
}

body.module-pnl.modern-design-page .billing-new-table thead th:hover,
body.module-pnl .billing-new-table thead th:hover {
    background: #1aa179 !important;
    color: #ffffff !important;
}

body.module-audit-training.modern-design-page .billing-new-table thead th:hover,
body.module-audit-training .billing-new-table thead th:hover {
    background: #e66a0a !important;
    color: #ffffff !important;
}

body.module-task-management.modern-design-page .billing-new-table thead th:hover,
body.module-task-management .billing-new-table thead th:hover {
    background: #0899b8 !important;
    color: #ffffff !important;
}

body.module-assets-management.modern-design-page .billing-new-table thead th:hover,
body.module-assets-management .billing-new-table thead th:hover {
    background: #0f5132 !important;
    color: #ffffff !important;
}

.modern-design-page .billing-new-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    white-space: nowrap;
}

.modern-design-page .billing-new-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.modern-design-page .billing-new-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.modern-design-page .billing-new-table tbody tr:hover {
    background: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.modern-design-page .billing-new-table tbody tr:last-child {
    border-bottom: none;
}

.modern-design-page .billing-new-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: #495057;
    vertical-align: middle;
    /* width: 200px; */
    line-height: 1.5;
}

.utility-bill-page .billing-new-table tbody td {
    width: 200px;
}

/* Ensure table columns align properly */
.modern-design-page .billing-new-table {
    table-layout: auto;
    width: 100%;
}

.modern-design-page .billing-new-table thead th {
    white-space: nowrap;
}

.modern-design-page .billing-new-table tbody td {
    white-space: normal;
    word-wrap: break-word;
}

/* Fix for status column to prevent content overflow */
.modern-design-page .billing-new-table tbody td.status-pending {
    white-space: normal;
    text-align: left;
    min-width: 100px;
}

/* Fix for action buttons column */
.modern-design-page .billing-new-table tbody td.action-buttons {
    white-space: nowrap;
    text-align: left;
    min-width: 120px;
    height: 100;
}

/* Ensure action buttons don't overflow into other columns */
.modern-design-page .billing-new-table tbody td.action-buttons * {
    display: inline-block;
    vertical-align: middle;
}

/* Prevent status badges from breaking layout */
.modern-design-page .billing-new-table tbody td.status-pending .status-badge-active,
.modern-design-page .billing-new-table tbody td.status-pending .status-badge-inactive {
    display: inline-block;
    white-space: nowrap;
}

/* Status Badges */
.modern-design-page .status-pending {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-design-page .status-badge-active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
    padding: 8px 14px;
    border-radius: 5px;
}

.modern-design-page .status-badge-inactive {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(235, 51, 73, 0.3);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.modern-design-page .action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.modern-design-page .action-buttons button,
.modern-design-page .action-buttons .common-btn-color,
.modern-design-page .action-buttons .btn-view-document {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    min-width: auto;
    height: 42px;
    line-height: 1;
    text-decoration: none;
}

.modern-design-page .action-buttons a {
    display: inline-block;
    text-decoration: none;
}

.modern-design-page .action-buttons button svg,
.modern-design-page .action-buttons .common-btn-color svg {
    width: 16px !important;
    height: 16px !important;
    fill: #ffffff !important;
    stroke: none !important;
    filter: none !important;
    display: inline-block;
    vertical-align: middle;
}

.modern-design-page .action-buttons button:hover,
.modern-design-page .action-buttons .common-btn-color:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    color: #ffffff !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.modern-design-page .action-buttons button:active,
.modern-design-page .action-buttons .common-btn-color:active {
    transform: translateY(0);
}

.modern-design-page .export_button {
    display: inline-block;
    margin-left: 0.75rem;
}

.modern-design-page .export_button button,
.modern-design-page .export_button .btn {
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 42px;
}

.modern-design-page .export_button button:hover,
.modern-design-page .export_button .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Fix for emloyee-header-btn and similar button containers */
.modern-design-page .emloyee-header-btn button,
.modern-design-page .emloyee-header-btn .btn,
.modern-design-page .emloyee-header-btn .common-btn-color {
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
}

/* ============================================
   MODALS - MODERN DESIGN
   ============================================ */
.modern-design-page .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modern-design-page .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 9px 2rem;
    position: relative;
}

.modern-design-page .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.modern-design-page .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.modern-design-page .modal-body {
    padding: 2rem;
    background: #ffffff;
}

.modern-design-page .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modern-design-page .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.modern-design-page .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ============================================
   PAGINATION
   ============================================ */
.modern-design-page .pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.modern-design-page .pagination .page-link {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.625rem 1rem;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-design-page .pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modern-design-page .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.modern-design-page .sec-heading {
    margin-bottom: 1rem;
}

.modern-design-page .sec-heading h3 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #084d8d 0%, #073f75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.modern-design-page .alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.modern-design-page .alert-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
}

.modern-design-page .alert-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #ffffff;
}

.modern-design-page .alert-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
}

/* ============================================
   ICONS - ENHANCED
   ============================================ */
.modern-design-page svg {
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    width: 13px;
}

.modern-design-page button:hover svg,
.modern-design-page a:hover svg {
    transform: scale(1.05);
}

/* Ensure icons are visible in buttons */
.modern-design-page button svg,
.modern-design-page .common-btn-color svg,
.modern-design-page .action-buttons svg {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Fix icon colors in action buttons */
.modern-design-page .action-buttons button svg path,
.modern-design-page .action-buttons .common-btn-color svg path {
    fill: #ffffff !important;
    stroke: none !important;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.modern-design-page .container,
.modern-design-page .container-fluid {
    max-width: 1400px;
}

.modern-design-page #content {
    background: #fff;
    padding: 2rem !important;
    margin-left: 253px;
}

#selectedRestaurantNames:hover {
    background-color: #20c997;
    color: #fff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
#content .hidden {
    overflow: auto;
    gap: 20px;
}

#content .hidden div:nth-child(1) {
    flex-shrink: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modern-design-page .card {
    animation: fadeInUp 0.6s ease-out;
}

.modern-design-page .page-table {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.modern-design-page #sidebar ul li {
    animation: slideInRight 0.4s ease-out both;
}

.modern-design-page #sidebar ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-design-page #sidebar ul li:nth-child(2) {
    animation-delay: 0.15s;
}

.modern-design-page #sidebar ul li:nth-child(3) {
    animation-delay: 0.2s;
}

.modern-design-page #sidebar ul li:nth-child(4) {
    animation-delay: 0.25s;
}

.modern-design-page #sidebar ul li:nth-child(5) {
    animation-delay: 0.3s;
}

.modern-design-page #sidebar ul li:nth-child(6) {
    animation-delay: 0.35s;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
.modern-design-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.modern-design-page ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modern-design-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.modern-design-page ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.modern-design-page .text-end {
    text-align: right;
}

.modern-design-page .mb-4 {
    margin-bottom: 1.5rem;
}

.modern-design-page .mb-3 {
    margin-bottom: 1rem;
}

.modern-design-page .mt-4 {
    margin-top: 1.5rem;
}

.modern-design-page .mt-5 {
    margin-top: 3rem;
}

.modern-design-page .px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.modern-design-page .m-0 {
    margin: 0;
}

/* ============================================
   LOADING STATES & TRANSITIONS
   ============================================ */
.modern-design-page * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.select2-container--default .select2-selection--multiple {
    padding: 2px 4px;
    min-height: 42px;
    height: auto !important;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 7px;
}

/* Places where we want the closed control to visually align at 42px,
   but still allow it to grow when multiple items are selected */
.asset-management-restro .select2-container--default .select2-selection--multiple,
.taskmanagement-task .select2-container--default .select2-selection--multiple,
.comment-filters-wrapper .select2-container--default .select2-selection--multiple {
    min-height: 42px;
}

.select2-container--default .select2-search--inline input {
    width: 100%;
    margin: 0;
    border: none !important;
}

.desktop-filters input {
    height: 42px !important;
    padding: 0.625rem 1rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: 0.9375rem !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #e0e0e0 !important;
}

.select2-container--default .select2-selection--single {
    height: 42px !important;
    /* padding: 0.625rem 1rem !important; */
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: 0.9375rem !important;
}

.select2-container--default .select2-selection--single {
    height: 42px !important;
    /* padding: 0.625rem 1rem !important; */
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: 0.9375rem !important;
}

.licence-pagee table .common-btn-color {
    width: 40px !important;
}

.standard-content-div {
    border: 1px solid #959595;
}

#restaurant_div .select2-selection {
    height: auto;
}

.module-assets-management .badge {
    padding: 7px 12px
}

.module-task-management .billing-new-table a {
    flex-shrink: 0;
    margin-bottom: 5px;
}

.task-detail-box {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    padding: 5px;
    padding-bottom: 10px;
}

.task-detail-box strong {
    width: 30%;
}

.task-detail-box span {
    width: 65%
}

/* ============================================
   AUTH / LOGIN PAGE - MODERN DESIGN
   (Only affects /login, via .login-page-div)
   ============================================ */
.login-page-div {
    max-width: 420px;
    margin: 3rem auto;
    padding: 2.5rem 2.25rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.login-page-div::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(102, 126, 234, 0.15), transparent 60%),
        radial-gradient(circle at bottom right, rgba(118, 75, 162, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.login-page-div form {
    position: relative;
    z-index: 1;
}

.min-h-screen {
    background: radial-gradient(circle at top, #e0e7ff 0, #f1f5f9 40%, #e5e7eb 100%);
}

.min-h-screen .fill-current {
    display: none !important;
}

.login-page-div img {
    width: 177px;
    border-radius: 9px;
    display: block;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.25);
    padding: 17px;
}

.login-page-div p {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 1.75rem;
    color: #4b5563;
}

.login-page-div p br {
    display: none;
}

.login-page-div label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.login-page-div input[type="email"],
.login-page-div input[type="password"] {
    margin-top: 0.35rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.login-page-div input[type="email"]:focus,
.login-page-div input[type="password"]:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.login-page-div .block.mt-4 {
    margin-top: 1.25rem;
}

.login-page-div #remember_me {
    border-radius: 6px;
}

.login-page-div .ms-2 {
    color: #6b7280 !important;
    font-size: 0.85rem;
}

.login-page-div .flex.items-center.justify-end.mt-4 {
    margin-top: 1.75rem;
    align-items: center;
    gap: 0.75rem;
}

.login-page-div a.underline.text-sm {
    font-size: 0.8rem;
    color: #6b7280;
}

.login-page-div a.underline.text-sm:hover {
    color: #111827;
}

.login-page-div button[type="submit"],
.login-page-div .ms-3 button,
.login-page-div .ms-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-page-div button[type="submit"]:hover,
.login-page-div .ms-3:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.45);
}

.login-page-div button[type="submit"]:active,
.login-page-div .ms-3:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

.login-page-div .text-red-600,
.login-page-div .dark\:text-red-400 {
    font-size: 0.8rem;
}

.module-home .employee-page .billing-new-table thead {
    background: #3583cd;
}

.module-home .employee-page .billing-new-table thead th:hover {
    background: #20578b !important;
    color: #ffffff !important;
}

.module-home .restro-page .billing-new-table thead {
    background: #3583cd;
}

.module-home .role-management-page .billing-new-table thead {
    background: #3583cd;
}

.module-home .modal-header {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%) !important;
}


.module-home .restro-page .billing-new-table thead th:hover {
    background: #20578b !important;
    color: #ffffff !important;
}

.module-home .role-management-page .billing-new-table thead th:hover {
    background: #20578b !important;
    color: #ffffff !important;
}

.module-home #sidebarCollapse {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%) !important;
    height: 44px;
}

.modern-design-page #sidebarCollapse {
    height: 44px;
}

.module-home .common-btn-color {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%) !important;
}

.module-home .brand-card-sec .common-btn-color {
    background: inherit !important;
}

.staff_class .select2-container--default .select2-selection--multiple {
    height: auto !important;
}

.module-billing .modal-header {
    background: #0070fc;
}

.action-buttons button {
    width: 42px !important;
}

.module-pnl .data-card svg {
    width: 35px;

}

.module-pnl .modal-header {
    background: #00cc9c !important;
}

.module-pnl .modal-header .common-btn-color {
    background: #fff !important;
    color: #00cfa1;
    padding: 0.75rem 20px !important;
}

#fieldModal .modal-header div {
    align-items: center;
}

@media (max-width: 640px) {
    .login-page-div {
        margin: 1.5rem 1.25rem;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .login-page-div img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 1440px) {
    .modern-design-page .card-title {
        font-size: 17px;
    }
}

@media (max-width: 1024px) {
    /* .desktop-filters {
        margin-bottom: 20px;
    } */

    .modern-design-page #content {
        margin-left: 0;
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .modern-design-page .card-body {
        padding: 1.5rem;
    }

    .modern-design-page .company_logo {
        width: 120px;
        height: 100px;
    }

    .modern-design-page .billing-new-table {
        font-size: 0.875rem;
    }

    .modern-design-page .billing-new-table thead th,
    .modern-design-page .billing-new-table tbody td {
        padding: 0.875rem 1rem;
    }

    .modern-design-page .input-group {
        flex-direction: row;
    }

    .modern-design-page h3 {
        font-size: 1.75rem;
    }

    .modern-design-page h3 {
        font-size: 20px;
    }

    .btn.btn-primary {
        color: #fff;
    }

    #fieldModal .modal-header div {
        width: 50%;
    }

    .modern-design-page .modal-title {
        font-size: 20px;
    }

    .modern-design-page .modal-header {
        padding: 9px 13px;
    }
}

@media (max-width: 500px) {
    .modern-design-page .brand-card-sec {
        padding: 2rem 0px;
    }

    .modern-design-page #content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #approvalBody select {
        width: 250px;
    }

    #approvalBody input {
        width: 250px;
    }

    .form-check-input {
        width: auto !important;
    }

    .restro-audit .form-row {
        display: block;
    }

    .permission-item {
        width: 100%;
    }
        .modern-design-page .modal-title {
        font-size: 15px;
    }
        #fieldModal .modal-header div {
        width: 59%;
    }
   .common-btn-color {
    font-weight: 500;
    font-size: 14px;}
}