/* ====================================
   Modern Theme Enhancements
   Fonts, Colors, Borders & Visual Effects
   ==================================== */

/* Typography Enhancements */
:root {
    --font-display: 'Lato', 'Open Sans', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Open Sans', 'Lato', 'Segoe UI', system-ui, sans-serif;
    font-family: var(--font-body);
}

body {
    font-family: 'Open Sans', 'Lato', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', 'Open Sans', 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: #0284c7;
    border-left: 4px solid #0ea5e9;
    padding-left: 12px;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    color: #0284c7;
}

/* Card Enhancements */
.card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid #e0f2fe;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-modern:hover {
    border-color: #7dd3fc;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
    transform: translateY(-4px);
}

.card-gradient-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    border: 2px solid #7dd3fc;
}

.card-gradient-cyan {
    background: linear-gradient(135deg, #ecf9ff 0%, #e0f7ff 50%, #cffafe 100%);
    border: 2px solid #06b6d4;
}

.card-gradient-emerald {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    border: 2px solid #86efac;
}

/* Border & Accent Styles */
.border-accent-blue {
    border: 2px solid #0ea5e9;
    border-radius: 8px;
}

.border-accent-cyan {
    border: 2px solid #06b6d4;
    border-radius: 8px;
}

.border-glow {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #0284c7, #0ea5e9);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.border-glow:hover {
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.4);
}

/* Text Enhancements */
.text-gradient-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-gradient-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-muted {
    color: #64748b;
    font-weight: 500;
}

.text-accent {
    color: #0ea5e9;
    font-weight: 600;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #0ea5e9;
}

.section-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #0284c7, #0ea5e9);
    border-radius: 2px;
}

.section-header h2 {
    margin: 0;
    border-left: none;
    padding-left: 0;
    font-size: 1.5rem;
    color: #0284c7;
    font-weight: 700;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Stat Card */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-left: 5px solid #0ea5e9;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Styles */
.badge-blue {
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-cyan {
    background: linear-gradient(135deg, #a5f3fc, #67e8f9);
    color: #0891b2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-green {
    background: linear-gradient(135deg, #bbf7d0, #86efac);
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Divider Lines */
.divider-horizontal {
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    margin: 24px 0;
    border: none;
}

.divider-accent {
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #06b6d4);
    margin: 16px 0;
    border: none;
    border-radius: 2px;
}

/* Icon Containers */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.icon-box-cyan {
    background: linear-gradient(135deg, #a5f3fc, #67e8f9);
}

.icon-box-green {
    background: linear-gradient(135deg, #bbf7d0, #86efac);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: #334155;
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Panel Header Enhanced */
.panel-header-enhanced {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #06b6d4 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

/* Input Enhancements */
.input-modern {
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-modern:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: #f0f9ff;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0284c7;
    font-size: 0.95rem;
}

/* Animation Classes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ====================================
   Modern Navigation Menu Styles
   ==================================== */

/* Navigation Container */
nav {
    transition: all 0.3s ease;
}

/* Menu Container Base */
#mem-main-menu, #user-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Logo Styling */
#mem-main-menu li img {
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mem-main-menu li img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.5);
}

/* Menu Item Styling */
.mg-menu-item {
    position: relative;
    overflow: hidden;
}

.mg-menu-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.mg-menu-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mg-menu-item a:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(14, 165, 233, 0.1));
    color: #0ea5e9;
    transform: translateY(-2px);
}

.mg-menu-item a:hover::before {
    transform: scaleX(1);
}

/* Menu Parent (Dropdowns) */
.mg-menu-parent {
    position: relative;
}

.mg-menu-parent > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.mg-menu-parent > a::after {
    content: '▼';
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.mg-menu-parent:hover > a::after {
    transform: rotate(180deg);
}

.mg-menu-parent:hover > a {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(14, 165, 233, 0.15));
    color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Dropdown Menu */
.mg-menu-parent ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    min-width: 220px !important;
    list-style: none !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25) !important;
    border: 2px solid #7dd3fc !important;
    z-index: 1000 !important;
    animation: slideInUp 0.2s ease-out !important;
    backdrop-filter: blur(10px) !important;
}

.mg-menu-parent:hover > ul {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mg-menu-parent ul li {
    padding: 0;
}

.mg-menu-parent ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mg-menu-parent ul li a:hover {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.08), transparent);
    color: #0284c7;
    border-left-color: #0ea5e9;
    padding-left: 24px;
}

.mg-menu-parent ul li a i {
    color: #0ea5e9;
}

/* Admin Menu Special Styling */
.mg-menu-parent[class*="orange"] > a {
    background: linear-gradient(135deg, #fed7aa, #fecaca);
    color: #b45309;
}

/* Detail Item Styling */
.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f9ff;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #0284c7;
    min-width: 120px;
}

.detail-value {
    color: #334155;
    flex-grow: 1;
}

.mg-menu-parent[class*="orange"]:hover > a {
    background: linear-gradient(135deg, #fcd34d, #fed7aa);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

/* User Profile Menu Special Styling */
.mg-menu-parent[class*="cyan"] > a {
    background: linear-gradient(135deg, #a5f3fc, #cffafe);
    color: #0891b2;
    font-weight: 700;
}

.mg-menu-parent[class*="cyan"]:hover > a {
    background: linear-gradient(135deg, #67e8f9, #a5f3fc);
    color: #0369a1;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* Icon Styling in Menu */
.mg-menu-item i,
.mg-menu-parent > a i {
    font-size: 1.1em;
}

/* Bootstrap Icon Colors */
.bi-display,
.bi-house {
    color: #0ea5e9;
}

.bi-search,
.bi-tools,
.bi-question-circle {
    color: #0284c7;
}

.bi-gear {
    color: #d97706;
}

.bi-person-circle {
    color: #0891b2;
}

/* Guest Auth Links */
.mg-menu-item:has(a[href*="login"]),
.mg-menu-item:has(a[href*="register"]) {
    margin: 0 4px;
}

.mg-menu-item:has(a[href*="login"]) a {
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    padding: 8px 14px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.mg-menu-item:has(a[href*="login"]) a:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.mg-menu-item:has(a[href*="register"]) a {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.mg-menu-item:has(a[href*="register"]) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #mem-main-menu, #user-menu {
        gap: 4px;
    }

    .mg-menu-item a,
    .mg-menu-parent > a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .mg-menu-parent ul {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    #mem-main-menu, #user-menu {
        gap: 2px;
    }

    .mg-menu-item a,
    .mg-menu-parent > a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .mg-menu-parent ul {
        min-width: auto;
        right: 0;
        left: auto;
    }
}

/* ====================================
   Item Card Grid Styling
   ==================================== */

.card-grid-container {
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 8px 0;
}

.card-grid-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    border: 2px dashed #e0f2fe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f7ff 100%);
}

/* Item Card Styling */
.item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid #e0f2fe;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.item-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.2);
    transform: translateY(-4px);
}

.item-card-header {
    background: linear-gradient(135deg, #1e7ba8 0%, #2596be 50%, #229ac7 100%);
    color: #ffffff;
    padding: 16px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.item-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-card-subtitle {
    font-size: 0.875rem;
    margin: 6px 0 0 0;
    opacity: 1;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.item-card-content {
    padding: 16px;
    flex-grow: 1;
    color: #334155;
    line-height: 1.6;
}

.item-card-content p {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.item-card-content p:last-child {
    margin-bottom: 0;
}

.item-card-tags {
    padding: 0 16px;
}

.item-card-tags .mg-chip-container {
    margin-bottom: 0;
}

.item-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0f2fe;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.item-card-footer :deep(.mg-icon) {
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-card-footer :deep(.mg-icon):hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .item-card-header {
        min-height: 60px;
        padding: 12px;
    }

    .item-card-content {
        padding: 12px;
    }

    .item-card-tags {
        padding: 0 12px;
    }

    .item-card-footer {
        padding: 8px 12px;
    }
}

/* ====================================
   Modal Dialog Styling
   ==================================== */

/* Target the MgDialog component itself by ID pattern */
#htm-modal-group,
#htm-modal-cardset,
#htm-modal-comment,
#htm-modal-member,
#htm-modal-notification,
#htm-modal-message,
[id^="htm-modal-"],
.modern-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1050 !important;
    border: 2px solid #e0f2fe !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.3) !important;
    overflow: visible !important;
    max-width: 600px !important;
    width: 90vw !important;
    margin: 0 !important;
    background: #ffffff !important;
}

/* Ensure the modal dialog element is visible and centered */
#htm-modal-group :deep(.modal),
#htm-modal-group :deep(.modal-dialog),
#htm-modal-cardset :deep(.modal),
#htm-modal-cardset :deep(.modal-dialog),
#htm-modal-comment :deep(.modal),
#htm-modal-comment :deep(.modal-dialog),
#htm-modal-member :deep(.modal),
#htm-modal-member :deep(.modal-dialog),
#htm-modal-notification :deep(.modal),
#htm-modal-notification :deep(.modal-dialog),
#htm-modal-message :deep(.modal),
#htm-modal-message :deep(.modal-dialog),
.modern-modal :deep(.modal),
.modern-modal :deep(.modal-dialog) {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Modal Content */
#htm-modal-group :deep(.modal-content),
#htm-modal-cardset :deep(.modal-content),
#htm-modal-comment :deep(.modal-content),
#htm-modal-member :deep(.modal-content),
#htm-modal-notification :deep(.modal-content),
#htm-modal-message :deep(.modal-content),
.modern-modal :deep(.modal-content) {
    border: none !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
}

/* Modal Backdrop - semi-transparent with blur */
:deep(.modal-backdrop.show) {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 1 !important;
}

/* Gradient Header Class */
.gradient-header {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #06b6d4 100%) !important;
    color: #ffffff !important;
    padding: 20px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    font-weight: 800 !important;
}

/* Modern Modal Header */
#htm-modal-group :deep(.modal-header),
#htm-modal-cardset :deep(.modal-header),
#htm-modal-comment :deep(.modal-header),
#htm-modal-member :deep(.modal-header),
#htm-modal-notification :deep(.modal-header),
#htm-modal-message :deep(.modal-header),
.modern-modal :deep(.modal-header) {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #06b6d4 100%) !important;
    color: #ffffff !important;
    padding: 20px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    font-weight: 800 !important;
}

#htm-modal-group :deep(.modal-header h1),
#htm-modal-group :deep(.modal-header h2),
#htm-modal-cardset :deep(.modal-header h1),
#htm-modal-cardset :deep(.modal-header h2),
#htm-modal-comment :deep(.modal-header h1),
#htm-modal-comment :deep(.modal-header h2),
#htm-modal-member :deep(.modal-header h1),
#htm-modal-member :deep(.modal-header h2),
#htm-modal-notification :deep(.modal-header h1),
#htm-modal-notification :deep(.modal-header h2),
#htm-modal-message :deep(.modal-header h1),
#htm-modal-message :deep(.modal-header h2),
.modern-modal :deep(.modal-header h1),
.modern-modal :deep(.modal-header h2) {
    color: #ffffff !important;
    font-weight: 800 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Modal Body */
#htm-modal-group :deep(.modal-body),
#htm-modal-cardset :deep(.modal-body),
#htm-modal-comment :deep(.modal-body),
#htm-modal-member :deep(.modal-body),
#htm-modal-notification :deep(.modal-body),
#htm-modal-message :deep(.modal-body),
.modern-modal :deep(.modal-body) {
    background: #f8fafb !important;
    padding: 24px !important;
    border: none !important;
    flex-grow: 1 !important;
}

/* Modal Footer */
#htm-modal-group :deep(.modal-footer),
#htm-modal-cardset :deep(.modal-footer),
#htm-modal-comment :deep(.modal-footer),
#htm-modal-member :deep(.modal-footer),
#htm-modal-notification :deep(.modal-footer),
#htm-modal-message :deep(.modal-footer),
.modern-modal :deep(.modal-footer) {
    background: #ffffff !important;
    border-top: 1px solid #e0f2fe !important;
    padding: 16px 24px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* Close Button */
#htm-modal-group :deep(.btn-close),
#htm-modal-cardset :deep(.btn-close),
#htm-modal-comment :deep(.btn-close),
#htm-modal-member :deep(.btn-close),
#htm-modal-notification :deep(.btn-close),
#htm-modal-message :deep(.btn-close),
.modern-modal :deep(.btn-close) {
    filter: brightness(0) saturate(100%) invert(1) !important;
}

/* Form Elements in Modal */
#htm-modal-group :deep(input[type="text"]),
#htm-modal-group :deep(input[type="email"]),
#htm-modal-group :deep(input[type="password"]),
#htm-modal-group :deep(textarea),
#htm-modal-group :deep(select),
#htm-modal-cardset :deep(input[type="text"]),
#htm-modal-cardset :deep(input[type="email"]),
#htm-modal-cardset :deep(input[type="password"]),
#htm-modal-cardset :deep(textarea),
#htm-modal-cardset :deep(select),
#htm-modal-comment :deep(input[type="text"]),
#htm-modal-comment :deep(input[type="email"]),
#htm-modal-comment :deep(input[type="password"]),
#htm-modal-comment :deep(textarea),
#htm-modal-comment :deep(select),
#htm-modal-member :deep(input[type="text"]),
#htm-modal-member :deep(input[type="email"]),
#htm-modal-member :deep(input[type="password"]),
#htm-modal-member :deep(textarea),
#htm-modal-member :deep(select),
#htm-modal-notification :deep(input[type="text"]),
#htm-modal-notification :deep(input[type="email"]),
#htm-modal-notification :deep(input[type="password"]),
#htm-modal-notification :deep(textarea),
#htm-modal-notification :deep(select),
#htm-modal-message :deep(input[type="text"]),
#htm-modal-message :deep(input[type="email"]),
#htm-modal-message :deep(input[type="password"]),
#htm-modal-message :deep(textarea),
#htm-modal-message :deep(select),
.modern-modal :deep(input[type="text"]),
.modern-modal :deep(input[type="email"]),
.modern-modal :deep(input[type="password"]),
.modern-modal :deep(textarea),
.modern-modal :deep(select) {
    border: 2px solid #e0f2fe !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    transition: all 0.3s ease !important;
}

#htm-modal-group :deep(input[type="text"]:focus),
#htm-modal-group :deep(input[type="email"]:focus),
#htm-modal-group :deep(input[type="password"]:focus),
#htm-modal-group :deep(textarea:focus),
#htm-modal-group :deep(select:focus),
#htm-modal-cardset :deep(input[type="text"]:focus),
#htm-modal-cardset :deep(input[type="email"]:focus),
#htm-modal-cardset :deep(input[type="password"]:focus),
#htm-modal-cardset :deep(textarea:focus),
#htm-modal-cardset :deep(select:focus),
#htm-modal-comment :deep(input[type="text"]:focus),
#htm-modal-comment :deep(input[type="email"]:focus),
#htm-modal-comment :deep(input[type="password"]:focus),
#htm-modal-comment :deep(textarea:focus),
#htm-modal-comment :deep(select:focus),
#htm-modal-member :deep(input[type="text"]:focus),
#htm-modal-member :deep(input[type="email"]:focus),
#htm-modal-member :deep(input[type="password"]:focus),
#htm-modal-member :deep(textarea:focus),
#htm-modal-member :deep(select:focus),
#htm-modal-notification :deep(input[type="text"]:focus),
#htm-modal-notification :deep(input[type="email"]:focus),
#htm-modal-notification :deep(input[type="password"]:focus),
#htm-modal-notification :deep(textarea:focus),
#htm-modal-notification :deep(select:focus),
#htm-modal-message :deep(input[type="text"]:focus),
#htm-modal-message :deep(input[type="email"]:focus),
#htm-modal-message :deep(input[type="password"]:focus),
#htm-modal-message :deep(textarea:focus),
#htm-modal-message :deep(select:focus),
.modern-modal :deep(input[type="text"]:focus),
.modern-modal :deep(input[type="email"]:focus),
.modern-modal :deep(input[type="password"]:focus),
.modern-modal :deep(textarea:focus),
.modern-modal :deep(select:focus) {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
    outline: none !important;
}

/* Primary Buttons */
#htm-modal-group :deep(.btn-primary),
#htm-modal-cardset :deep(.btn-primary),
#htm-modal-comment :deep(.btn-primary),
#htm-modal-member :deep(.btn-primary),
#htm-modal-notification :deep(.btn-primary),
#htm-modal-message :deep(.btn-primary),
.modern-modal :deep(.btn-primary) {
    background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

#htm-modal-group :deep(.btn-primary:hover),
#htm-modal-cardset :deep(.btn-primary:hover),
#htm-modal-comment :deep(.btn-primary:hover),
#htm-modal-member :deep(.btn-primary:hover),
#htm-modal-notification :deep(.btn-primary:hover),
#htm-modal-message :deep(.btn-primary:hover),
.modern-modal :deep(.btn-primary:hover) {
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Secondary Buttons */
#htm-modal-group :deep(.btn-secondary),
#htm-modal-cardset :deep(.btn-secondary),
#htm-modal-comment :deep(.btn-secondary),
#htm-modal-member :deep(.btn-secondary),
#htm-modal-notification :deep(.btn-secondary),
#htm-modal-message :deep(.btn-secondary),
.modern-modal :deep(.btn-secondary) {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 2px solid #7dd3fc !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

#htm-modal-group :deep(.btn-secondary:hover),
#htm-modal-cardset :deep(.btn-secondary:hover),
#htm-modal-comment :deep(.btn-secondary:hover),
#htm-modal-member :deep(.btn-secondary:hover),
#htm-modal-notification :deep(.btn-secondary:hover),
#htm-modal-message :deep(.btn-secondary:hover),
.modern-modal :deep(.btn-secondary:hover) {
    background: #7dd3fc !important;
    color: white !important;
}

