/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F5F6FA;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #333;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Login Page - Figma Design */
.login-page {
    background: #4880ff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-background {
    position: absolute;
    inset: 0;
    background: #4880ff;
    overflow: hidden;
}

.login-shape-decoration {
    position: absolute;
    inset: -67.48% -46.27% -49.37% -13.96%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 60% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.6;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: white;
    border: 0.3px solid #b9b9b9;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.login-content {
    width: 100%;
    margin: 0 auto;
}

.login-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #202224;
    text-align: center;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #202224;
    opacity: 0.8;
    text-align: center;
    margin: 0 0 24px 0;
    letter-spacing: -0.3px;
}

.login-form {
    width: 100%;
}

/* Social Login Section */
.social-login-section {
    margin-bottom: 24px;
}

.social-login-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: white;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #202224;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-login-btn:hover {
    border-color: #4880ff;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(72, 128, 255, 0.15);
}

.social-login-btn:active {
    transform: translateY(0);
}

.social-icon {
    flex-shrink: 0;
}

.google-btn:hover {
    border-color: #4285F4;
    background: #f8f9ff;
}

.microsoft-btn:hover {
    border-color: #00A4EF;
    background: #f0f8ff;
}

.okta-btn:hover {
    border-color: #007DC1;
    background: #f0f7ff;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider-text {
    position: relative;
    background: white;
    padding: 0 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.3px;
}

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

.form-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #202224;
    opacity: 0.8;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

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

.form-label-row .form-label {
    margin-bottom: 0;
}

.forgot-password-link {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: #202224;
    opacity: 0.6;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: opacity 0.2s ease;
}

.forgot-password-link:hover {
    opacity: 0.8;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #f1f4f9;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #202224;
    letter-spacing: -0.3px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #a6a6a6;
    opacity: 1;
}

.form-input:focus {
    border-color: #4880ff;
    background: #ffffff;
}

.remember-password-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    border: 0.6px solid #a3a3a3;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    position: relative;
    flex-shrink: 0;
    background: white;
    transition: all 0.2s ease;
}

.remember-checkbox:checked {
    background: #4880ff;
    border-color: #4880ff;
}

.remember-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.remember-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: #202224;
    opacity: 0.6;
    cursor: pointer;
    letter-spacing: -0.3px;
    user-select: none;
}

.btn-signin {
    width: 100%;
    height: 44px;
    background: #4880ff;
    opacity: 0.9;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    color: white;
    cursor: pointer;
    letter-spacing: -0.3px;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.btn-signin:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 128, 255, 0.4);
}

.btn-signin:active {
    transform: translateY(0);
}

.create-account-link {
    text-align: center;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.3px;
}

.create-account-text {
    color: #202224;
    opacity: 0.65;
}

.create-account-link-text {
    color: #5a8cff;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.create-account-link-text:hover {
    color: #4880ff;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: left;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
}

.info-box {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.9em;
    color: #666;
}

/* Responsive Design for Login Page */
@media (max-width: 768px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 12px;
        margin: 20px;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 22px;
        line-height: 28px;
    }
    
    .login-subtitle {
        font-size: 13px;
        line-height: 18px;
    }
    
    .social-login-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .social-login-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .form-label,
    .form-input,
    .remember-label,
    .forgot-password-link,
    .create-account-link {
        font-size: 13px;
    }
    
    .form-input {
        height: 42px;
    }
    
    .btn-signin {
        height: 42px;
        font-size: 14px;
    }
}

/* Header */
.header {
    background: #FFFFFF;
    padding: 14px 20px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    border-bottom: 1px solid #E5E5E5;
}

/* Header Left Section (Menu + Search) */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* Hamburger Menu Icon */
.header-menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.header-menu-icon:hover {
    opacity: 1;
}

.header-menu-icon svg {
    width: 22px;
    height: 22px;
}

/* Search Bar */
.header-search {
    width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.header-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: #F5F6FA;
    border: 0.6px solid #D5D5D5;
    border-radius: 19px;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #202224;
    outline: none;
    transition: border-color 0.2s ease;
}

.header-search-input::placeholder {
    color: #202224;
    opacity: 0.5;
    text-align: left;
}

.header-search-input:focus {
    border-color: #667eea;
    background: #FFFFFF;
}

/* Profile Section Container */
.header-profile-container {
    position: relative;
}

/* Profile Section */
.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.header-profile:hover {
    background-color: #F5F6FA;
}

.header-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #D8D8D8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.header-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #565656;
    background: #D8D8D8;
    text-align: center;
    position: relative;
}

.header-profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-profile-name {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    color: #404040;
}

.header-profile-role {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #565656;
}

.header-profile-dropdown {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 19px;
    height: 19px;
    transition: transform 0.2s ease;
}

.header-profile-dropdown:hover {
    transform: translateY(1px);
}

.header-profile-dropdown-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 19px;
    height: 19px;
    pointer-events: none;
}

.header-profile-dropdown-chevron {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 5px;
    pointer-events: none;
}

/* Profile Dropdown Menu */
.header-profile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.header-profile-menu.show {
    display: block;
}

.header-profile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.header-profile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #404040;
    text-decoration: none;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.header-profile-menu-item:hover {
    background-color: #F5F6FA;
    color: #202224;
}

.header-profile-menu-item svg {
    flex-shrink: 0;
}

.tenant-name {
    color: #666;
    font-size: 0.9em;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #667eea;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: #f0f4ff;
    color: #5568d3;
}

.nav-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #667eea;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 6px;
    overflow: visible;
    top: 100%;
    left: 0;
    margin-top: 0;
}

/* Create a hoverable bridge area to prevent gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f0f4ff;
    color: #667eea;
}

.dropdown-content a.active {
    background-color: #667eea;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.account-count {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.accounts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.accounts-table thead {
    background: #f8f9fa;
}

.accounts-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.accounts-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.accounts-table tbody tr:hover {
    background: #f8f9fa;
}

.accounts-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-archived {
    background: #f8d7da;
    color: #721c24;
}

.status-deleted {
    background: #d1ecf1;
    color: #0c5460;
}

.status-authorised {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-voided {
    background: #f8d7da;
    color: #721c24;
}

.status-draft {
    background: #e2e3e5;
    color: #383d41;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }

    .header-left {
        width: 100%;
        order: 1;
    }

    .header-search {
        flex: 1;
        width: auto;
        max-width: none;
    }

    .header-profile-container {
        order: 2;
        margin-left: auto;
    }

    .header-profile-info {
        display: none;
    }

    .login-card {
        margin: 50px auto;
        padding: 30px 20px;
    }

    .accounts-table {
        font-size: 0.85em;
    }

    .accounts-table th,
    .accounts-table td {
        padding: 10px 8px;
    }
}

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

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
}

.stat-card-primary .stat-label {
    opacity: 0.9;
}

/* Invoice specific styles */
.amount-due {
    font-weight: 600;
    color: #dc3545;
}

/* Future sections styling */
#charts-section,
#chatbot-section {
    margin-top: 20px;
}

/* Connection Selector Component */
.connection-selector-widget {
    position: relative;
    display: inline-block;
}

.connection-selector-trigger {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.connection-selector-trigger:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.connection-selector-trigger .selected-count {
    background: #667eea;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.85em;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.connection-selector-trigger .trigger-text {
    flex: 1;
    text-align: left;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-selector-trigger .trigger-icon {
    color: #667eea;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.connection-selector-trigger.open .trigger-icon {
    transform: rotate(180deg);
}

.connection-selector-panel {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    max-width: 500px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    padding: 15px;
}

.connection-selector-panel.show {
    display: block;
}

.connection-selector-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.connection-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.connection-selector-header h4 {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.connection-selector-actions {
    display: flex;
    gap: 8px;
}

.connection-selector-actions button {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.connection-selector-actions .btn-clear {
    background: #f8f9fa;
    color: #666;
}

.connection-selector-actions .btn-clear:hover {
    background: #e9ecef;
}

.connection-selector-actions .btn-apply {
    background: #667eea;
    color: white;
}

.connection-selector-actions .btn-apply:hover {
    background: #5568d3;
}

.connection-category-group {
    margin-bottom: 20px;
}

.connection-category-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.connection-item:hover {
    background: #f8f9fa;
}

.connection-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.connection-item-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.connection-item-icon {
    font-size: 1.1em;
}

.connection-item-name {
    font-size: 0.9em;
    color: #333;
    flex: 1;
}

.connection-item-tenant {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.connection-selected-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.connection-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.connection-badge .badge-remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
}

.connection-badge .badge-remove:hover {
    opacity: 1;
}

