/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.6;
}

.container {
    max-width: 1440px; /* Increased from 1360px */
    margin: 0 auto;
    padding: 20px;
}

/* For very wide screens */
@media (min-width: 1600px) {
    .container {
        max-width: 90%;
    }
}

/* Header Styles */
header {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px; /* Increased gap between logo and nav */
}

header h1 {
    color: #1877f2;
    font-size: 24px;
}

/* Comment out or remove these generic nav styles
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #65676b;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #f0f2f5;
    color: #1877f2;
}

nav a.active {
    background: #e7f3ff;
    color: #1877f2;
}
*/

/* Auth Container */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-container h2 {
    margin-bottom: 20px;
    color: #1c1e21;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

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

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1877f2;
}

.form-inline {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f0f2f5;
    border-radius: 6px;
    margin-bottom: 15px;
}

.form-inline input {
    flex: 1;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-success {
    background: #42b883;
    color: white;
}

.btn-success:hover {
    background: #369b6f;
}

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

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

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

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

.btn-default {
    background: #f0f2f5;
    color: #1c1e21;
}

.btn-default:hover {
    background: #e4e6eb;
}

/* Button sizes for pipeline */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

/* Card Styles */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.card h2 {
    margin-bottom: 15px;
    color: #1c1e21;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #65676b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #1877f2;
}

/* List Styles */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f0f2f5;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.list-item:hover {
    background: #e4e6eb;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 500;
    color: #1c1e21;
    margin-bottom: 5px;
}

.list-item-meta {
    font-size: 12px;
    color: #65676b;
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e4e6eb;
    padding-bottom: 10px;
}

.tab {
    background: transparent;
    color: #65676b;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #f0f2f5;
}

.tab.active {
    background: #1877f2;
    color: white;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.post-author {
    font-weight: 500;
    color: #1c1e21;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 12px;
    color: #65676b;
}

.post-timestamps {
    display: inline-flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    align-items: center;
}

.post-time {
    color: #1877f2; /* Facebook blue */
    font-weight: 500;
}

.scan-time {
    color: #666;
}

.time-diff {
    color: #999;
    font-style: italic;
    font-size: 11px;
}

/* Hover effects for timestamps */
.post-time:hover,
.scan-time:hover {
    text-decoration: underline;
    cursor: help;
}

.post-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #1c1e21;
}

.post-keywords {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.keyword-tag {
    background: #e7f3ff;
    color: #1877f2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.draft-response {
    background: #f0f2f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #1877f2;
}

.draft-response strong {
    display: block;
    margin-bottom: 10px;
    color: #1c1e21;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Template Form */
.template-form {
    padding: 20px;
    background: #f0f2f5;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Pipeline View Styles */
.pipeline-view {
    padding: 20px;
}

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

.pipeline-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #4267B2;
}

.pipeline-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.pipeline-posts {
    display: grid;
    gap: 20px;
}

.pipeline-post {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.pipeline-post:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.pipeline-post.has-response {
    border-left: 4px solid #42b883;
}

.pipeline-post.needs-response {
    border-left: 4px solid #f39c12;
}

.pipeline-post .post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pipeline-post .post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.profile-link {
    color: #4267B2;
    font-size: 12px;
}

.pipeline-post .post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.group-name {
    color: #4267B2;
    font-weight: 500;
}

.pipeline-post .post-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pipeline-post .post-keywords {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.prepared-response {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
}

.prepared-response strong {
    display: block;
    margin-bottom: 5px;
    color: #0c4a6e;
}

.prepared-response p {
    margin: 0;
    color: #334155;
}

.pipeline-post .post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.post-preview {
    background: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
}

.preview-author {
    font-weight: 600;
    margin-bottom: 8px;
}

.preview-group {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.preview-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.preview-keywords {
    font-size: 12px;
    color: #666;
}

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

.response-form select,
.response-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.response-form textarea {
    resize: vertical;
    min-height: 100px;
}

.automation-options {
    background: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.automation-options label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.automation-options input[type="checkbox"] {
    margin-right: 8px;
}

#messageTemplateSection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f0f2f5;
    border-top: 5px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    animation: slideIn 0.3s ease;
    z-index: 1000;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
    background: #42b883;
}

.notification.error {
    background: #ff6b6b;
}

.notification.warning {
    background: #ff9800; /* Orange background for warnings */
}

.notification.info {
    background: #1877f2;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auth Switch Link */
.auth-switch {
    text-align: center;
    margin-top: 15px;
    color: #65676b;
}

.auth-switch a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* View Management */
.view {
    display: none;
}

.view.active {
    display: block;
}

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

.empty-state img {
    width: 100px;
    opacity: 0.5;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px; /* Increased from 10px for better spacing */
    }

    .post-timestamps {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    header {
        flex-direction: row; /* Keep horizontal */
        gap: 15px;
        padding: 12px 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .form-inline {
        flex-direction: column;
    }

    .post-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .pipeline-post .post-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .pipeline-filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Facebook-style Link */
.fb-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
}

.fb-link:hover {
    text-decoration: underline;
}

/* Author Profile Link */
.author-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: #ffebe8;
    border: 1px solid #ff6b6b;
    color: #c92a2a;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Inactive groups styling */
#inactiveGroupsList {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

#inactiveGroupsList .list-item {
    background-color: #f9f9f9;
}

/* Checkbox styling */
input[type="checkbox"] {
    cursor: pointer;
    margin-right: 5px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Search functionality styles */
.search-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #1877f2;
}

.search-box button {
    padding: 10px 20px;
    white-space: nowrap;
}

.search-help {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-left: 5px;
}

.search-help span {
    color: #666;
    font-size: 12px;
}

.search-summary {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #1877f2;
}

.search-info h4 {
    margin: 0 0 10px 0;
    color: #1877f2;
}

.search-info p {
    margin: 5px 0;
    font-size: 14px;
}

.search-info button {
    margin-top: 10px;
}

/* Rest of the score styles remain the same */
.post-score {
    margin: 10px 0;
    background: #f0f2f5;
    border-radius: 4px;
    padding: 5px 10px;
    position: relative;
    overflow: hidden;
}

.score-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #42b883, #1877f2);
    opacity: 0.2;
    transition: width 0.3s ease;
}

.score-value {
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: #1877f2;
}

/* Pipeline post status variations */
.pipeline-post.ready-to-send {
    border-left: 4px solid #f39c12;
    background: #fffbf0;
}

.pipeline-post.has-response {
    border-left: 4px solid #42b883;
    background: #f0fff4;
}

.pipeline-post.ignored {
    border-left: 4px solid #95a5a6;
    background: #f8f9fa;
    opacity: 0.8;
}

/* Completion indicators */
.completion-indicators {
    display: inline-flex;
    gap: 8px;
    margin-left: 12px;
}

.completion-indicators .indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    color: white;
    cursor: help;
}

.completion-indicators .indicator.comment {
    background: #3b5998;
}

.completion-indicators .indicator.friend {
    background: #42b883;
}

.completion-indicators .indicator.message {
    background: #0084ff;
}

/* Responded time in meta */
.responded-time {
    color: #42b883;
    font-weight: 500;
}

/* Post details modal styles */
.detail-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.post-content-detail,
.response-content {
    background: #f5f7fa;
    padding: 12px;
    border-radius: 6px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.action-results {
    display: grid;
    gap: 10px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.action-item.completed {
    background: #d4edda;
    color: #155724;
}

.action-item.not-completed {
    background: #f8f9fa;
    color: #6c757d;
}

.action-item i {
    width: 20px;
    text-align: center;
}

/* Update tab styles for consistency */
.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e1e8ed;
    margin-bottom: 20px;
}

.tabs .tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
}

.tabs .tab:hover {
    color: #4267B2;
    background: #f5f7fa;
}

.tabs .tab.active {
    color: #4267B2;
    border-bottom-color: #4267B2;
    font-weight: 600;
}

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

/* Filter select styling */
.pipeline-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #4267B2;
    box-shadow: 0 0 0 2px rgba(66, 103, 178, 0.1);
}

/* Completion indicators matching extension style */
.completion-indicators-row {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

.completion-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.completion-indicator.completed {
    color: #22c55e;
    font-weight: 500;
}

.completion-indicator.pending {
    color: #999;
}

.indicator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: bold;
}

.completion-indicator.completed .indicator-icon {
    color: #22c55e;
}

.completion-indicator.pending .indicator-icon {
    color: #ddd;
}

.indicator-label {
    font-size: 13px;
}

/* Remove the old circular indicator styles */
.completion-indicators {
    display: none;
}

/* Adjust post spacing when indicators are present */
.pipeline-post.has-response .post-content {
    margin-top: 0;
}

/* Make the indicators more prominent on hover */
.pipeline-post:hover .completion-indicators-row {
    background: #f8f9fa;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

/* For smaller screens, stack the indicators */
@media (max-width: 600px) {
    .completion-indicators-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .completion-indicator {
        padding: 4px 0;
    }
}

/* Scan Interval Slider Styles */
.scan-interval-section {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

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

.interval-header h3 {
  margin: 0;
  font-size: 14px;
  color: #1c1e21;
}

.interval-value {
  font-size: 14px;
  font-weight: bold;
  color: #1877f2;
}

.interval-slider {
  width: 100%;
  height: 6px;
  background: #e4e6eb;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 20px 0;
}

.interval-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #1877f2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.interval-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #1877f2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: none;
}

.interval-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  padding: 0 10px;
}

.interval-label {
  font-size: 11px;
  color: #65676b;
  text-align: center;
  flex: 1;
}

.interval-label.active {
  color: #1877f2;
  font-weight: bold;
}

/* Toggle Switch Styles - Add this to your styles.css */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #1877f2;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #1877f2;
}

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

.toggle-label {
    font-size: 14px;
    color: #65676b;
    user-select: none;
    cursor: pointer;
}

/* Add these styles to your existing styles.css file */

/* Add these styles to your existing styles.css file */

/* Updated Header Styles with Logo */
header {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo and Brand Styles */
.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent logo from shrinking */
    min-width: 120px; /* Minimum width for logo area */
}

.logo {
    height: 80px; /* Reduced from 100px for better proportion */
    width: auto;
    object-fit: contain;
    max-width: 180px; /* Reduced from 200px */
}

/* Hide the old h1 text since we're using a logo */
header h1 {
    display: none;
}

/* Navigation adjustments for logo layout */
#mainNav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex: 1;
    align-items: center;
}

#mainNav a, 
#mainNav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    color: #65676b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Make icons larger */
#mainNav a i,
#mainNav .nav-link i {
    font-size: 20px; /* Increased from default */
    width: 35px; /* Fixed width for alignment */
    text-align: center;
}

#mainNav a:hover,
#mainNav .nav-link:hover {
    background: #f0f2f5;
    color: #1877f2;
}

#mainNav a.active,
#mainNav .nav-link.active {
    background: #e7f3ff;
    color: #1877f2;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: row; /* Keep horizontal on tablets */
        align-items: center;
        padding: 12px 15px;
        gap: 20px;
    }
    
    .header-brand {
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    .logo {
        height: 50px; /* Smaller on mobile */
        max-width: 140px;
    }
    
    #mainNav {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap; /* Allow wrapping on mobile */
    }
    
    #mainNav a,
    #mainNav .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    header {
        flex-direction: column; /* Stack vertically on phones */
    }
    
    .header-brand {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    #mainNav {
        justify-content: center;
        width: 100%;
    }
}

/* Auth container branding enhancement */
.auth-container {
    position: relative;
}

/* Add a subtle brand color accent to auth forms */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1877f2;
    border-radius: 8px 8px 0 0;
}

/* Ensure auth container has proper spacing for the accent */
.auth-container {
    padding-top: 35px;
}

/* Beta/Testers iframe layout */
.frame-wrap {
  height: calc(100vh - 140px); /* adjust if your header/nav height differs */
  background: #fff;
}
#betaFrame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}