/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Utility classes */
.hidden {
    display: none !important;
}

.section {
    min-height: 100vh;
}

/* Loading styles */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login styles */
#login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    margin-bottom: 30px;
}

.logo i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
}

.logo h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-top: 10px;
}

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

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Prevent button shrinking during loading states */
.btn {
    min-height: 48px; /* Set consistent minimum height */
    min-width: 130px; /* Set consistent minimum width */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: inherit;
}

/* Ensure button text and loading states maintain layout */
.btn .btn-text,
.btn .btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn .btn-text.hidden {
    visibility: hidden; /* Use visibility instead of display to maintain space */
    opacity: 0;
}

.btn .btn-loading.hidden {
    display: none;
}

/* Header styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo i {
    font-size: 32px;
    color: #667eea;
}

.header .logo h1 {
    font-size: 24px;
    color: #333;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.nav-btn:hover {
    background: #f8f9fa;
    color: #333;
}

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

.nav-btn i {
    margin-right: 5px;
}

/* Main content styles */
.main-content {
    padding: 40px 0;
}

/* Card styles */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

.card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.card p {
    color: #666;
    margin-bottom: 10px;
}

/* Dashboard styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 18px;
}

/* Chit list styles */
.chit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.chit-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s;
}

.chit-card:hover {
    transform: translateY(-5px);
}

.chit-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.chit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chit-info label {
    font-weight: 500;
    color: #555;
}

.chit-info span {
    color: #333;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

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

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

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

/* Role-based chit card styles */
.chit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.chit-header h4 {
    margin: 0;
    flex: 1;
}

.role-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
    flex-shrink: 0;
}

.role-badge i {
    font-size: 12px;
}

.role-moderator {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #b8860b;
    border: 1px solid #daa520;
}

.role-member {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #2196f3;
}

.role-observer {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #666;
    border: 1px solid #bdbdbd;
}

/* Role-based card styling */
.chit-card-moderator {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
}

.chit-card-moderator:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.chit-card-member {
    border-left: 4px solid #2196f3;
    background: linear-gradient(135deg, #f8fcff 0%, #ffffff 100%);
}

.chit-card-member:hover {
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.chit-card-observer {
    border-left: 4px solid #bdbdbd;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    opacity: 0.85;
}

.chit-card-observer:hover {
    box-shadow: 0 8px 25px rgba(189, 189, 189, 0.2);
}

/* Chit actions */
.chit-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.chit-actions .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Chit details page specific styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moderator-actions, .member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moderator-label, .member-label {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.moderator-label {
    background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
    color: #b8860b;
    border: 1px solid #daa520;
}

.member-label {
    background: linear-gradient(135deg, #e8f4fd 0%, #cce7ff 100%);
    color: #1976d2;
    border: 1px solid #2196f3;
}

.chit-overview-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.chit-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chit-title h3 {
    margin: 0;
    font-size: 24px;
}

/* Responsive design for page header */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .chit-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .chit-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Message styles */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #dc3545;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .chit-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 30px 20px;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

/* Loading states */
.loading-content {
    text-align: center;
    padding: 40px;
}

.loading-content .spinner {
    margin: 0 auto 20px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #333;
}

.empty-state p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* Mock data toggle */
.mock-toggle-container {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.mock-toggle {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
}

.mock-toggle input[type="checkbox"] {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-right: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: middle;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mock-toggle input:checked + .toggle-slider {
    background-color: #34c759; /* iOS green color */
}

.mock-toggle input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Add subtle scale animation on toggle */
.mock-toggle input:checked + .toggle-slider:before {
    transform: translateX(30px) scale(1.05);
    animation: toggleBounce 0.2s ease-out;
}

@keyframes toggleBounce {
    0% { transform: translateX(30px) scale(1); }
    50% { transform: translateX(30px) scale(1.1); }
    100% { transform: translateX(30px) scale(1.05); }
}

.mock-toggle:hover .toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.mock-toggle input:checked:hover + .toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(52, 199, 89, 0.2);
}

/* Disabled state */
.mock-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mock-toggle.disabled .toggle-slider {
    background-color: #f1f1f1;
}

.mock-toggle.disabled input:checked + .toggle-slider {
    background-color: #a8e6cf;
}

.toggle-label {
    font-size: 13px;
    opacity: 1;
    font-weight: 500;
    user-select: none;
    color: inherit;
    white-space: nowrap;
    margin-left: 5px;
}

/* Focus and accessibility states */
.mock-toggle input:focus + .toggle-slider {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.mock-toggle input:focus:checked + .toggle-slider {
    outline: 2px solid #34c759;
    outline-offset: 2px;
}

/* Active/pressed state */
.mock-toggle:active .toggle-slider:before {
    transform: scale(0.95);
}

.mock-toggle input:checked:active + .toggle-slider:before {
    transform: translateX(30px) scale(0.95);
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
    .mock-toggle {
        padding: 8px;
        margin: -8px;
    }
    
    .mock-toggle:hover .toggle-slider {
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .mock-toggle input:checked:hover + .toggle-slider {
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Data mode indicator */
.data-mode-indicator {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.data-mode-indicator.mock {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.data-mode-indicator.live {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Settings page styles */
.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.settings-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-label {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.settings-control {
    flex: 2;
    max-width: 300px;
}

.settings-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Settings page toggles */
.settings-group .mock-toggle {
    color: #333;
}

.settings-group .toggle-label {
    color: #333;
    font-weight: 600;
}

.settings-group .toggle-slider {
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-group .mock-toggle input:checked + .toggle-slider {
    background-color: #007bff;
}

.settings-group .mock-toggle:hover .toggle-slider {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.settings-group .mock-toggle input:checked:hover + .toggle-slider {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Connection status indicator */
.connection-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.connection-status.connected {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.connection-status.disconnected {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.connection-status.testing {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.connection-status i {
    margin-right: 4px;
}

/* Chit Details Page Styles */
.chit-details {
    max-width: 1200px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-header h2 {
    color: #495057;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.breadcrumb .btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: none;
    padding: 0;
    font-size: inherit;
    cursor: pointer;
}

.breadcrumb .btn-link:hover {
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 0.5rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.chit-details-content {
    display: grid;
    gap: 2rem;
}

.chit-overview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.chit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.chit-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chit-title h3 {
    margin: 0;
    color: #495057;
    font-size: 1.5rem;
}

.chit-progress {
    margin-top: 1.5rem;
}

.progress-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.progress-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.progress-track {
    background: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chit-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chit-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.members-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.member-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #007bff;
}

.member-info h5 {
    margin: 0 0 0.25rem 0;
    color: #495057;
    font-size: 1rem;
}

.member-email {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.member-details {
    margin-top: 0.5rem;
}

.member-details small {
    color: #6c757d;
}

/* Invite Members Page Styles */
.invite-members {
    max-width: 1200px;
}

.invite-content {
    display: grid;
    gap: 2rem;
}

.chit-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #28a745;
}

.chit-info-card h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.chit-info-card p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.chit-quick-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.chit-quick-info span {
    color: #495057;
    font-size: 0.9rem;
}

.contacts-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header h4 {
    margin: 0;
    color: #495057;
}

.contacts-actions {
    display: flex;
    gap: 0.5rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-item:hover:not(.already-member) {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.contact-item.already-member {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-email, .contact-phone {
    color: #6c757d;
    font-size: 0.85rem;
}

.member-badge {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.invite-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.selected-count {
    font-weight: 600;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chit-sections {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .chit-quick-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contacts-actions {
        flex-wrap: wrap;
    }
    
    .invite-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
}