/* inCONNECT Portal - Wonde Style Interface */

:root {
    --wonde-blue: #1e40af;
    --wonde-blue-light: #3b82f6;
    --wonde-blue-dark: #1e3a8a;
    --wonde-gray: #6b7280;
    --wonde-gray-light: #f3f4f6;
    --wonde-gray-dark: #374151;
    --wonde-green: #10b981;
    --wonde-orange: #f59e0b;
    --wonde-red: #ef4444;
    --wonde-white: #ffffff;
    --wonde-border: #e5e7eb;
    --wonde-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body.wonde-style {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--wonde-gray-light);
    color: var(--wonde-gray-dark);
    line-height: 1.5;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* Reduce all font sizes by 4px (2px + 2px more) */
body.wonde-style {
    font-size: calc(1rem - 4px);
}

body.wonde-style * {
    font-size: inherit;
}

body.wonde-style h1 { font-size: calc(2rem - 4px) !important; }
body.wonde-style h2 { font-size: calc(1.75rem - 4px) !important; }
body.wonde-style h3 { font-size: calc(1.5rem - 4px) !important; }
body.wonde-style h4 { font-size: calc(1.25rem - 4px) !important; }
body.wonde-style h5 { font-size: calc(1.125rem - 4px) !important; }
body.wonde-style h6 { font-size: calc(1rem - 4px) !important; }
body.wonde-style small, .small { font-size: calc(0.875rem - 4px) !important; }
body.wonde-style .btn { font-size: calc(0.875rem - 4px) !important; }
body.wonde-style .form-control, .form-select { font-size: calc(1rem - 4px) !important; }
body.wonde-style .table { font-size: calc(0.875rem - 4px) !important; }
body.wonde-style .badge { font-size: calc(0.75rem - 4px) !important; }
body.wonde-style label { font-size: calc(0.875rem - 4px) !important; }

.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--wonde-white);
    border-right: 1px solid var(--wonde-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--wonde-border);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.logo-in {
    color: #1e40af;
    font-weight: 500;
}

.logo-connect {
    color: #374151;
    font-weight: 600;
}

.logo-image {
    max-height: 60px;
    width: auto;
    max-width: 250px;
}

.login-logo-container {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-logo {
    height: auto;
    width: auto;
    max-width: min(25vw, 200px);
    max-height: min(15vh, 80px);
    min-width: 120px;
    min-height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-logo-fallback {
    min-height: 60px;
    justify-content: center;
    width: 100%;
}

/* Modern Login Design - Two Column Layout */
.modern-login-page {
    background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 600px;
}

/* Left Panel - Login Form */
.login-left-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo {
    max-height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 40px 0;
    text-align: center;
}

.login-form-container {
    width: 100%;
}

.modern-login-form {
    width: 100%;
}

.modern-login-form .form-group {
    margin-bottom: 24px;
}

.modern-login-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modern-login-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9fafb;
    color: #374151;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modern-login-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-login-form .form-input::placeholder {
    color: #9ca3af;
}

.password-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151;
}

.modern-login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modern-login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-login-form .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.modern-login-form .remember-me label {
    color: #374151;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.modern-login-form .forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modern-login-form .forgot-password:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.modern-login-form .login-button {
    width: 100%;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.modern-login-form .login-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.signup-link {
    text-align: center;
}

.signup-link p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.signup-text {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signup-text:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Right Panel - Illustration and Marketing */
.login-right-panel {
    flex: 1;
    background: #f8fafc;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.illustration-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
    position: relative;
}

.illustration-placeholder {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tablet-screen {
    width: 120px;
    height: 80px;
    background: #1f2937;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.screen-content {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #374151;
    border-radius: 4px;
    padding: 4px;
}

.chart-container {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.pie-chart {
    width: 20px;
    height: 20px;
    background: conic-gradient(#3b82f6 0deg 120deg, #f59e0b 120deg 240deg, #10b981 240deg 360deg);
    border-radius: 50%;
}

.line-graph {
    width: 30px;
    height: 20px;
    background: linear-gradient(45deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
    position: relative;
}

.line-graph::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #60a5fa;
    border-radius: 1px;
}

.search-bar {
    width: 100%;
    height: 12px;
    background: #4b5563;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.search-bar i {
    color: #9ca3af;
    font-size: 8px;
}

.bar-chart {
    width: 100%;
    height: 16px;
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.bar-chart::before {
    content: '';
    flex: 1;
    background: #6b7280;
    border-radius: 1px;
}

.bar-chart::after {
    content: '';
    flex: 1;
    background: #f59e0b;
    border-radius: 1px;
}

.checklist {
    display: flex;
    gap: 4px;
}

.check-item {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-item i {
    color: white;
    font-size: 6px;
}

.interaction-hands {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.left-hand {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbulb {
    width: 16px;
    height: 16px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.right-hand {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.stylus {
    width: 12px;
    height: 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.plus-icon {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    font-weight: bold;
}

.plus-1 {
    top: 20px;
    right: 20px;
}

.plus-2 {
    bottom: 30px;
    left: 20px;
    background: #3b82f6;
}

.cylinder {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 8px;
    height: 16px;
    background: #3b82f6;
    border-radius: 4px;
}

.marketing-content {
    text-align: center;
    max-width: 300px;
}

.marketing-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.marketing-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.indicator.active {
    background: #3b82f6;
    width: 16px;
}

/* Clean Minimal Login Design - Exact Match (Legacy) */
.login-page {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 350px;
    text-align: left;
}

/* Branding Section */
.branding-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.brand-icon {
    width: 20px;
    height: 20px;
    background: black;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.brand-text h1 {
    color: black;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.brand-text p {
    color: black;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 1px 0;
}

.brand-text span {
    color: black;
    font-size: 0.7rem;
    font-weight: 400;
}

/* User Icons */
.user-icons {
    margin-bottom: 25px;
}

.icon-group {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.icon-group i,
.icon-single i {
    font-size: 12px;
    color: black;
}

/* Form Section */
.form-section {
    width: 100%;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    font-size: 13px;
    background-color: white;
    color: #374151;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-input::placeholder {
    color: #9ca3af;
}

.lock-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    font-size: 10px;
    z-index: 2;
}

.form-group:has(.lock-icon) .form-input {
    padding-left: 28px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-me input[type="checkbox"] {
    width: 12px;
    height: 12px;
    accent-color: #8b5cf6;
}

.remember-me label {
    color: black;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.forgot-password {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #3b82f6;
    text-decoration: underline;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: none;
}

.forgot-password i {
    font-size: 8px;
}

.login-button {
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Alert Styles */
.alert {
    padding: 8px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
    font-size: 12px;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--wonde-border) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--wonde-border);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--wonde-gray);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-header {
    margin: 16px 0 0 0;
    padding: 0;
}

.nav-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    color: var(--wonde-gray);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-header-link:hover {
    background-color: var(--wonde-gray-light);
    color: var(--wonde-blue);
}

.nav-header-text {
    font-size: calc(11px - 4px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wonde-gray);
    display: block;
}

.nav-header-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: var(--wonde-gray);
}

.nav-header-link[aria-expanded="true"] .nav-header-arrow {
    transform: rotate(180deg);
}

.nav-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-parent {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--wonde-gray-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.nav-link:hover {
    background-color: var(--wonde-gray-light);
    color: var(--wonde-blue);
}

.nav-link.active {
    background-color: var(--sidebar-text-color, var(--wonde-gray-dark));
    color: var(--sidebar-bg-color, var(--wonde-white));
    font-weight: 600;
}

.nav-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-link[aria-expanded="true"] .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--wonde-gray-light);
}

.nav-subitem {
    margin: 0;
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 48px;
    color: var(--wonde-gray-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.nav-sublink:hover {
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--wonde-blue);
}

.nav-sublink.active {
    background-color: var(--sidebar-text-color, var(--wonde-gray-dark));
    color: var(--sidebar-bg-color, var(--wonde-white));
    font-weight: 600;
}

.nav-sublink .nav-icon {
    font-size: 12px;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: calc(16px - 4px);
}

.nav-text {
    font-size: calc(14px - 4px);
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--wonde-border);
    flex-shrink: 0;
    background-color: var(--wonde-white);
    z-index: 10;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.user-profile:hover {
    background-color: var(--wonde-gray-light);
}

.user-profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    color: inherit;
    text-decoration: none;
}

.user-profile-btn:hover,
.user-profile-btn:focus {
    color: inherit;
    background: none;
    box-shadow: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--wonde-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wonde-white);
    font-weight: 600;
    font-size: 14px;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--wonde-blue) 0%, #0056b3 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wonde-white);
    font-weight: 600;
    font-size: 36px;
    flex-shrink: 0;
}

/* Sortable table headers */
.table thead th a {
    transition: color 0.2s;
}

.table thead th a:hover {
    color: var(--wonde-blue) !important;
}

.table thead th a i {
    font-size: 0.85em;
    margin-left: 0.5rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--wonde-gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-org {
    font-size: 12px;
    color: var(--wonde-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-arrow {
    color: var(--wonde-gray);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-profile-btn[aria-expanded="true"] .user-arrow {
    transform: rotate(180deg);
}

.user-profile-menu {
    min-width: 280px;
    padding: 0;
    border: 1px solid var(--wonde-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.user-profile-menu .dropdown-header {
    padding: 16px;
    background-color: var(--wonde-gray-light);
    border-bottom: 1px solid var(--wonde-border);
}

.user-profile-menu .dropdown-item {
    padding: 12px 16px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.user-profile-menu .dropdown-item:hover {
    background-color: var(--wonde-gray-light);
}

.user-profile-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.user-profile-menu .dropdown-divider {
    margin: 8px 0;
}

/* Login Page Styles */
body.login-page {
    background: linear-gradient(135deg, var(--wonde-blue) 0%, var(--wonde-blue-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--wonde-white);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--wonde-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-height: 80px;
    max-width: 300px;
    object-fit: contain;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--wonde-gray-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--wonde-gray);
    font-size: 14px;
    margin-bottom: 0;
}

.login-form .form-label {
    font-weight: 500;
    color: var(--wonde-gray-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.login-form .form-control {
    border: 1px solid var(--wonde-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.login-form .form-control:focus {
    border-color: var(--wonde-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.login-form .btn-primary {
    background-color: var(--wonde-blue);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.login-form .btn-primary:hover {
    background-color: var(--wonde-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--wonde-border);
}

.login-sidebar {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--wonde-blue) 0%, var(--wonde-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-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="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.login-sidebar-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--wonde-white);
}

.login-sidebar-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-sidebar-content p {
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .login-sidebar {
        display: flex;
    }
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--wonde-border);
}

.divider-text {
    padding: 0 16px;
    color: var(--wonde-gray);
    font-size: 14px;
    font-weight: 500;
}

.sso-login-options .btn {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sso-login-options .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: calc(100% - 280px);
    width: calc(100% - 280px);
    overflow-x: hidden;
}

.top-bar {
    background-color: var(--wonde-white);
    border-bottom: 1px solid var(--wonde-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--wonde-gray);
}

.breadcrumbs i {
    color: var(--wonde-blue);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.customer-switcher select {
    min-width: 200px;
}

.user-menu .btn {
    padding: 8px;
    border: none;
    background: none;
    color: var(--wonde-gray);
}

.user-menu .btn:hover {
    color: var(--wonde-blue);
}

.page-content {
    flex: 1;
    padding: 24px;
}

/* Page Headers */
.page-header {
    margin-bottom: 24px;
}

.page-header-card {
    background-color: var(--wonde-white);
    border: 1px solid var(--wonde-border);
    border-radius: 12px;
    box-shadow: var(--wonde-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--wonde-gray-dark);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 12px;
    color: var(--wonde-blue);
}

.page-subtitle {
    color: var(--wonde-gray);
    font-size: 14px;
    margin: 0;
}

/* Main Content Card */
.main-content-card {
    background-color: var(--wonde-white);
    border: 1px solid var(--wonde-border);
    border-radius: 12px;
    box-shadow: var(--wonde-shadow);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.main-content-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid var(--wonde-gray-light);
    margin-bottom: 0;
}

.main-content-body {
    padding: 16px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.main-content-body .row {
    margin-left: -12px;
    margin-right: -12px;
    max-width: 100%;
}

.main-content-body .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.main-content-body .card {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Filters card should never overflow - ensure form and rows are constrained */
/* Ensure filters card and form elements are constrained */
.main-content-body .card .card-body form {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.main-content-body .card .card-body .row {
    max-width: 100%;
    width: 100%;
    margin-left: -12px;
    margin-right: -12px;
    overflow-x: hidden;
}

.main-content-body .card .card-body .row > [class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0; /* Allow flex items to shrink below content size */
}

.main-content-body .card .card-body .form-control,
.main-content-body .card .card-body .form-select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure input-group buttons align properly */
.main-content-body .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.main-content-body .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.main-content-body .input-group .btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content-body .card-body {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Cards */
.card {
    background-color: var(--wonde-white);
    border: 1px solid var(--wonde-border);
    border-radius: 8px;
    box-shadow: var(--wonde-shadow);
    margin-bottom: 24px;
}

.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--wonde-border);
    background-color: var(--wonde-white);
    border-radius: 8px 8px 0 0;
}

.card-title {
    font-size: calc(18px - 4px);
    font-weight: 600;
    color: var(--wonde-gray-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 16px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--wonde-white);
    border: 1px solid var(--wonde-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--wonde-shadow);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: var(--wonde-white);
}

.stat-icon.blue { background-color: var(--wonde-blue); }
.stat-icon.green { background-color: var(--wonde-green); }
.stat-icon.orange { background-color: var(--wonde-orange); }
.stat-icon.red { background-color: var(--wonde-red); }

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--wonde-gray-dark);
    margin: 0 0 8px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--wonde-gray);
    margin: 0;
}

/* Tables */
.table-container {
    background-color: var(--wonde-white);
    border: 1px solid var(--wonde-border);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: var(--wonde-shadow);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    width: 100%;
    min-width: max-content;
    table-layout: auto;
}

.table-container table th,
.table-container table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table {
    margin: 0;
    background-color: var(--wonde-white);
}

.table thead th {
    background-color: var(--wonde-gray-light);
    border: none;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--wonde-gray-dark);
    font-size: calc(14px - 4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 10px 12px;
    border-top: 1px solid var(--wonde-border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--wonde-gray-light);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--wonde-blue);
    border-color: var(--wonde-blue);
    color: var(--wonde-white);
}

.btn-primary:hover {
    background-color: var(--wonde-blue-dark);
    border-color: var(--wonde-blue-dark);
}

.btn-outline-primary {
    color: var(--wonde-blue);
    border-color: var(--wonde-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--wonde-blue);
    border-color: var(--wonde-blue);
    color: var(--wonde-white);
}

.btn-outline-secondary {
    color: var(--wonde-gray);
    border-color: var(--wonde-border);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--wonde-gray);
    border-color: var(--wonde-gray);
    color: var(--wonde-white);
}

.btn-outline-danger {
    color: var(--wonde-red);
    border-color: var(--wonde-red);
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: var(--wonde-red);
    border-color: var(--wonde-red);
    color: var(--wonde-white);
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge.bg-success {
    background-color: var(--wonde-green) !important;
}

.badge.bg-warning {
    background-color: var(--wonde-orange) !important;
}

.badge.bg-danger {
    background-color: var(--wonde-red) !important;
}

.badge.bg-info {
    background-color: var(--wonde-blue) !important;
}

.badge.bg-secondary {
    background-color: var(--wonde-gray) !important;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--wonde-border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wonde-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--wonde-gray-dark);
    margin-bottom: 6px;
    font-size: 14px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--wonde-green);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--wonde-red);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--wonde-orange);
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--wonde-blue);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--wonde-gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--wonde-gray);
}

.empty-state h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--wonde-gray-dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .top-bar {
        padding: 12px 16px;
    }
    
    .login-logo-container {
        min-height: 50px;
    }
    
    .login-logo {
        max-height: min(12vh, 60px);
        max-width: min(22vw, 180px);
        min-width: 100px;
        min-height: 35px;
    }
}

@media (max-width: 480px) {
    .login-logo-container {
        min-height: 40px;
    }
    
    .login-logo {
        max-height: min(10vh, 50px);
        max-width: min(20vw, 150px);
        min-width: 80px;
        min-height: 30px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .login-logo-container {
        min-height: 35px;
    }
    
    .login-logo {
        max-height: min(8vh, 45px);
        max-width: min(18vw, 120px);
        min-width: 70px;
        min-height: 25px;
    }
}

/* Large screens - prevent logo from getting too big */
@media (min-width: 1200px) {
    .login-logo {
        max-width: 250px;
        max-height: 100px;
    }
}

/* Modern Login Responsive Design */
@media (max-width: 768px) {
    .modern-login-page {
        padding: 20px 15px;
    }
    
    .login-container {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        border-radius: 16px;
    }
    
    .login-left-panel {
        padding: 40px 30px;
    }
    
    .login-right-panel {
        padding: 40px 30px;
        order: -1;
    }
    
    .login-header h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .marketing-content h2 {
        font-size: 20px;
    }
    
    .illustration-container {
        max-width: 250px;
        margin-bottom: 30px;
    }
    
    .illustration-placeholder {
        height: 150px;
    }
    
    .tablet-screen {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .modern-login-page {
        padding: 15px 10px;
    }
    
    .login-left-panel {
        padding: 30px 20px;
    }
    
    .login-right-panel {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .modern-login-form .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .modern-login-form .login-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .marketing-content h2 {
        font-size: 18px;
    }
    
    .marketing-content p {
        font-size: 13px;
    }
    
    .illustration-container {
        max-width: 200px;
        margin-bottom: 25px;
    }
    
    .illustration-placeholder {
        height: 120px;
    }
    
    .tablet-screen {
        width: 80px;
        height: 60px;
    }
}

/* Legacy Responsive Design */
@media (max-width: 768px) {
    .login-page {
        padding: 20px 15px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .branding-section {
        margin-bottom: 20px;
    }
    
    .user-icons {
        margin-bottom: 20px;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
    
    .brand-text p {
        font-size: 0.75rem;
    }
    
    .brand-text span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 15px 10px;
    }
    
    .branding-section {
        margin-bottom: 15px;
    }
    
    .user-icons {
        margin-bottom: 15px;
    }
    
    .brand-text h1 {
        font-size: 1rem;
    }
    
    .brand-text p {
        font-size: 0.7rem;
    }
    
    .brand-text span {
        font-size: 0.6rem;
    }
    
    .form-input {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .form-group:has(.lock-icon) .form-input {
        padding-left: 24px;
    }
    
    .lock-icon {
        left: 6px;
        font-size: 8px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .login-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Utility Classes */
.text-muted {
    color: var(--wonde-gray) !important;
}

/* Clickable site names */
a.text-decoration-none {
    color: var(--wonde-gray-dark);
    transition: color 0.2s ease;
}

a.text-decoration-none:hover {
    color: var(--wonde-blue);
    text-decoration: none !important;
}

/* Site Overview Tabs */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    color: var(--wonde-gray);
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: var(--wonde-border);
    color: var(--wonde-blue);
}

.nav-tabs .nav-link.active {
    color: var(--wonde-blue);
    background-color: var(--wonde-white);
    border-color: var(--wonde-border) var(--wonde-border) var(--wonde-white);
}

.tab-content {
    border: 1px solid var(--wonde-border);
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.5rem;
    background-color: var(--wonde-white);
}

/* Nested tabs styling */
.nav-pills .nav-link {
    border-radius: 0.375rem;
    color: var(--wonde-gray);
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.nav-pills .nav-link:hover {
    color: var(--wonde-blue);
    background-color: var(--wonde-gray-light);
}

.nav-pills .nav-link.active {
    background-color: var(--wonde-blue);
    color: var(--wonde-white);
}

/* Settings table styling */
.table-hover tbody tr:hover {
    background-color: var(--wonde-gray-light);
}

.table th {
    font-weight: 600;
    color: var(--wonde-gray-dark);
    border-bottom: 2px solid var(--wonde-border);
}

.table td {
    vertical-align: middle;
}

.form-check-input:checked {
    background-color: var(--wonde-blue);
    border-color: var(--wonde-blue);
}

/* Sortable table styling */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: var(--wonde-gray-light);
}

.sortable i {
    margin-left: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.sortable:hover i {
    opacity: 1;
}

.sortable.active i {
    opacity: 1;
    color: var(--wonde-blue);
}

.text-primary {
    color: var(--wonde-blue) !important;
}

.text-success {
    color: var(--wonde-green) !important;
}

.text-warning {
    color: var(--wonde-orange) !important;
}

.text-danger {
    color: var(--wonde-red) !important;
}

.bg-light {
    background-color: var(--wonde-gray-light) !important;
}

.border {
    border: 1px solid var(--wonde-border) !important;
}

.rounded {
    border-radius: 6px !important;
}

.shadow-sm {
    box-shadow: var(--wonde-shadow) !important;
}
