/* My Account 2 Page Styles */

/* Profile Completion Banner */
.profile-completion-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.profile-completion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="20" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.completion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.completion-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-icon svg {
    color: white;
}

.completion-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.completion-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.completion-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
}

.completion-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.completion-refresh, .completion-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-refresh:hover, .completion-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.completion-refresh:active, .completion-close:active {
    transform: scale(0.95);
}

/* Account Header Subtitle */
.account-subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* Section Descriptions */
.section-description {
    color: #64748b;
    font-size: 14px;
    margin: 4px 0 20px 0;
    line-height: 1.5;
}

/* Required Indicators */
.required-indicator {
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
}

/* Form Help Text */
.form-help {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
    font-style: italic;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Form Validation States */
.form-input.error, .form-textarea.error, .form-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success, .form-textarea.success, .form-select.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-error-message {
    display: block;
}

/* Progress Celebration */
.profile-complete-celebration {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: center;
    animation: celebrationFadeIn 0.5s ease;
}

@keyframes celebrationFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.celebration-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.celebration-icon {
    font-size: 32px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.celebration-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.celebration-content p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled::before {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-completion-banner {
        padding: 16px 20px;
    }

    .completion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .completion-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-bar {
        width: 100%;
        max-width: 200px;
    }

    .account-subtitle {
        font-size: 14px;
    }
}

/* Body overrides for account page */
body {
    overflow: auto !important;
    height: auto !important;
}

/* Header overrides */
.logout-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Ensure proper header layout */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.favicon-img {
    height: 34px; /* 2x the logo height (17px * 2) */
    width: 34px;
}

.logo-img {
    height: 17px; /* Made 30% smaller (24px * 0.7 ≈ 17px) */
    width: auto;
}

.navigation {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Main Layout */
.account-main {
    min-height: calc(100vh - 72px);
    background: #f9f1ea;
    padding: 40px 0;
    overflow-y: auto;
}

.account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.account-header {
    margin-bottom: 32px;
}

.account-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Account Layout */
.account-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar */
.account-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    height: fit-content;
    position: sticky;
    top: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 8px;
    border-radius: 6px;
}

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

.nav-tab.active {
    background: #f0f8ff;
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.nav-tab.danger {
    color: #ef4444;
}

.nav-tab.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.nav-tab svg {
    flex-shrink: 0;
}

/* Fix LinkedIn tab alignment and icon spacing */
.nav-tab.linkedin-profile-tab {
    /* Compact style already handles padding */
}

.nav-tab.linkedin-profile-tab svg {
    margin-right: 6px;
}

/* Hidden class for smooth tab transitions */
.nav-tab.linkedin-profile-tab.hidden {
    display: none;
}

.sidebar-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 8px 16px;
}

/* Content Area */
.account-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    min-height: 600px;
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

.content-header {
    margin-bottom: 32px;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.content-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 32px;
}

.profile-avatar {
    position: relative;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.avatar-edit-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.profile-role {
    font-size: 1rem;
    color: #666;
    margin: 0 0 4px 0;
}

.profile-location {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.section-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-edit-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* API Key Input */
.api-key-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.api-key-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 14px;
    font-weight: 500;
}

.api-key-status-indicator svg {
    stroke: #10b981;
}

.api-key-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.api-key-input .form-input {
    padding-right: 48px;
    width: 100%;
}

.toggle-visibility-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-visibility-btn:hover {
    background: #f3f4f6;
    color: #333;
}

/* Button Styles */
.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Preferences */
.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.preference-item:last-child {
    border-bottom: none;
}

.preference-info {
    flex: 1;
}

.preference-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.preference-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
}

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

/* Danger Section */
.danger-section {
    max-width: 600px;
}

.danger-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 24px;
}

.danger-warning svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.danger-warning h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 8px 0;
}

.danger-warning p {
    font-size: 0.9rem;
    color: #7f1d1d;
    margin: 0;
    line-height: 1.5;
}

/* Form validation states */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading states */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading,
.btn-secondary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid;
    border-color: currentColor transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-primary.loading::after {
    border-color: white transparent;
}

.btn-secondary.loading::after {
    border-color: #374151 transparent;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Navigation Menu */
/* Mobile menu toggle styles moved to mobile-menu-standard.css */

/* Mobile Header Styles */
@media (max-width: 1024px) {
    .header-container {
        position: relative;
        justify-content: space-between;
        align-items: center;
        height: 64px;
    }

    /* Move logo further left on mobile */
    .logo {
        order: 1;
        margin-right: auto;
    }

    .navigation {
        display: none !important;
    }

    /* Logout button to left of mobile menu toggle */
    .header-cta {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 3;
    }

    /* Mobile menu toggle styles moved to mobile-menu-standard.css */

    /* Mobile Navigation Menu styles moved to mobile-menu-standard.css */

    /* Mobile nav link active states handled in mobile-menu-standard.css */
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .account-layout {
        flex-direction: column;
        gap: 24px;
    }

    .account-sidebar {
        width: 100%;
        position: static;
        order: -1; /* Move tabs to the top */
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 12px;
        gap: 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
        min-width: fit-content;
        flex-shrink: 0;
        font-size: 12px;
        gap: 6px;
        margin: 2px 4px;
        border-radius: 6px 6px 0 0;
    }

    .nav-tab.active {
        border-left: none;
        border-bottom-color: #3b82f6;
    }

    .sidebar-divider {
        display: none;
    }

    .account-content {
        order: 1;
    }

    .account-main {
        padding: 24px 0;
    }

    .account-container {
        padding: 0 20px;
        max-width: 100%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Global Mobile Adjustments */
    .account-main {
        padding: 16px 0;
    }

    .account-container {
        padding: 0 12px;
        max-width: 100%;
    }

    .tab-content {
        padding: 16px;
        border-radius: 8px;
    }

    /* Header Adjustments */
    .account-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .account-title {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .account-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Profile Completion Banner */
    .profile-completion-banner {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .completion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .completion-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-bar {
        width: 100%;
        max-width: none;
    }

    .completion-actions {
        position: static;
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Form Elements */
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }

    .form-section {
        margin-bottom: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .section-description {
        font-size: 13px;
        line-height: 1.4;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

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

    .form-help {
        font-size: 12px;
        margin-top: 6px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px; /* Better touch targets */
    }

    /* API Key Section */
    .api-key-label-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .api-key-status-indicator {
        font-size: 13px;
        padding: 4px 8px;
        border-radius: 12px;
    }

    .api-key-input {
        width: 100%;
    }

    .toggle-visibility-btn {
        right: 8px;
        padding: 8px;
    }

    /* LinkedIn Profile */
    .linkedin-profile-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }

    .linkedin-profile-left {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .linkedin-profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .linkedin-profile-info {
        text-align: center;
    }

    .linkedin-profile-info h3 {
        font-size: 20px;
    }

    .linkedin-headline {
        font-size: 14px;
    }

    .linkedin-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
    }

    .linkedin-url {
        order: -1;
        margin-bottom: 12px;
    }

    .linkedin-profile-actions {
        flex-direction: column;
        gap: 8px;
    }

    .linkedin-profile-actions .btn-primary,
    .linkedin-profile-actions .btn-secondary,
    .linkedin-profile-actions .btn-outline {
        width: 100%;
        font-size: 14px;
        padding: 12px 16px;
    }

    /* Danger Section */
    .danger-warning {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    .danger-warning svg {
        align-self: center;
    }

    .danger-warning h3 {
        font-size: 1rem;
    }

    .danger-warning p {
        font-size: 0.9rem;
    }

    /* Modal Improvements */
    .edit-modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }

    .url-edit-modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .delete-website-modal-content,
    .url-removal-modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    /* Website Management */
    .website-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .website-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .website-info h4 {
        font-size: 16px;
    }

    .scraped-urls-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .urls-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Compact Lists */
    .summary-section {
        padding-bottom: 16px;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .compact-list {
        gap: 8px;
    }

    .compact-item {
        padding: 8px 0;
        padding-left: 16px;
        font-size: 14px;
    }

    /* Array Editor */
    .array-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .array-item-input {
        width: 100%;
    }

    .array-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Touch Improvements */
    .edit-btn,
    .btn-outline-small,
    .btn-primary-small,
    .btn-danger-small,
    .url-action-btn {
        min-height: 40px;
        min-width: 40px;
        padding: 8px 12px;
    }

    /* URL Discovery */
    .url-discovery-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .url-discovery-selection-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .url-discovery-actions {
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
    }

    .url-discovery-actions button {
        width: 100%;
        padding: 12px 16px;
        min-height: 44px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .account-container {
        padding: 0 8px;
    }

    .tab-content {
        padding: 12px;
    }

    .account-title {
        font-size: 1.5rem;
    }

    .content-title {
        font-size: 1.125rem;
    }

    .account-subtitle {
        font-size: 13px;
    }

    .sidebar-nav {
        gap: 2px;
        padding: 0 8px;
    }

    .nav-tab {
        padding: 12px 16px;
        font-size: 12px;
        min-width: 80px;
    }

    .nav-tab svg {
        width: 16px;
        height: 16px;
    }

    .nav-tab span {
        display: none; /* Hide text on very small screens */
    }

    .nav-tab svg {
        margin: 0; /* Center icons when text is hidden */
    }

    /* LinkedIn Profile */
    .linkedin-profile-info h3 {
        font-size: 18px;
    }

    .linkedin-headline {
        font-size: 13px;
    }

    .linkedin-section h4 {
        font-size: 14px;
    }

    .experience-header h5,
    .education-header h5 {
        font-size: 14px;
    }

    .experience-item,
    .education-item {
        padding: 12px;
    }

    .linkedin-actions {
        flex-direction: column;
        gap: 8px;
    }

    .linkedin-actions .btn-primary,
    .linkedin-actions .btn-secondary,
    .linkedin-actions .btn-outline {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Skills */
    .linkedin-skills-list {
        justify-content: center;
        gap: 6px;
    }

    .skill-tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Website Management */
    .website-info h4 {
        font-size: 15px;
    }

    .btn-outline-small,
    .btn-primary-small,
    .btn-danger-small {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Summary */
    .summary-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 11px;
    }

    .section-title-row h6 {
        font-size: 13px;
    }

    .section-content {
        font-size: 13px;
    }

    .compact-item {
        font-size: 13px;
        padding-left: 14px;
    }

    /* Modals */
    .edit-modal-content,
    .url-edit-modal-content,
    .delete-website-modal-content,
    .url-removal-modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    /* URL Discovery */
    .url-discovery-content {
        margin: 5px;
        max-width: calc(100vw - 10px);
    }

    .url-discovery-item {
        padding: 12px 16px;
    }

    .url-discovery-info {
        min-width: 0;
    }

    .url-discovery-title {
        font-size: 13px;
    }

    .url-discovery-url {
        font-size: 11px;
    }

    .url-discovery-priority {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #10b981;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

/* LinkedIn Profile Tab Styles */
.linkedin-profile-container {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.linkedin-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.linkedin-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.linkedin-loading-spinner svg {
    color: #3b82f6;
}

.linkedin-loading p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.linkedin-not-found {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.linkedin-not-found-content {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.linkedin-not-found-content svg {
    color: #94a3b8;
}

.linkedin-not-found-content h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.linkedin-not-found-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.linkedin-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.linkedin-profile-content {
    max-width: 100%;
}

/* LinkedIn Profile Header */
.linkedin-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.linkedin-profile-left {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.linkedin-profile-avatar {
    flex-shrink: 0;
}

.linkedin-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

.linkedin-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.linkedin-profile-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.linkedin-headline {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

.linkedin-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.linkedin-location::before {
    content: '📍';
    margin-right: 4px;
}

.linkedin-connections::before {
    content: '👥';
    margin-right: 4px;
}

.linkedin-url {
    margin-top: 0;
}

.linkedin-url a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.linkedin-url a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.linkedin-url a svg {
    width: 12px;
    height: 12px;
}

/* LinkedIn Sections */
.linkedin-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.linkedin-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.linkedin-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.linkedin-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.linkedin-about-text {
    color: #374151;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

.linkedin-about-text p {
    margin: 0 0 1em 0;
}

.linkedin-about-text p:last-child {
    margin-bottom: 0;
}

.linkedin-about-text br {
    display: block;
    margin: 0.5em 0;
    content: "";
}

/* Experience Section */
.linkedin-experience-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-item {
    padding: 14px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.experience-header {
    margin-bottom: 6px;
}

.experience-header h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.experience-company {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.experience-duration {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 8px;
}

.experience-description {
    color: #374151;
    line-height: 1.5;
    font-size: 13px;
}

/* Education Section */
.linkedin-education-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.education-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.education-header {
    margin-bottom: 6px;
}

.education-header h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.education-school {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.education-duration {
    color: #6b7280;
    font-size: 12px;
}

/* Skills Section */
.linkedin-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Profile Actions */
.linkedin-profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-outline:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    ring-offset: 2px;
}

/* Data Quality Indicator - Hidden */
.linkedin-data-quality {
    display: none;
}

.data-quality-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.data-quality-header h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.data-quality-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-bar {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.quality-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.quality-fill.excellent {
    background: linear-gradient(90deg, #10b981, #059669);
}

.quality-fill.good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.quality-fill.fair {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.quality-fill.poor {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.quality-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    min-width: 50px;
}

.data-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.data-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
}

.data-source:last-child {
    border-bottom: none;
}

.data-source-name {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.data-source-timestamp {
    color: #6b7280;
    font-size: 12px;
}

/* Responsive LinkedIn Styles */
@media (max-width: 768px) {
    .linkedin-profile-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
    }

    .linkedin-profile-left {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .linkedin-profile-avatar img {
        width: 70px;
        height: 70px;
    }

    .linkedin-profile-info {
        text-align: center;
    }

    .linkedin-profile-info h3 {
        font-size: 18px;
    }

    .linkedin-headline {
        font-size: 13px;
    }

    .linkedin-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
    }

    .linkedin-url {
        order: -1;
        margin-bottom: 8px;
    }

    .linkedin-sections {
        gap: 16px;
    }

    .experience-item,
    .education-item {
        padding: 12px;
    }

    .linkedin-profile-actions {
        flex-direction: column;
        gap: 6px;
    }

    .linkedin-profile-actions .btn-primary,
    .linkedin-profile-actions .btn-secondary,
    .linkedin-profile-actions .btn-outline {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
    }

    .linkedin-section h4 {
        font-size: 15px;
    }

    .experience-header h5 {
        font-size: 14px;
    }

    .education-header h5 {
        font-size: 13px;
    }

    /* Prevent horizontal scrolling in LinkedIn profile */
    .linkedin-profile-container {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }

    .linkedin-profile-content {
        overflow-x: hidden;
        width: 100%;
    }

    .linkedin-section h4 {
        word-wrap: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }

    .experience-item,
    .education-item {
        overflow-x: hidden;
        word-wrap: break-word;
        width: 100%;
    }

    .experience-company,
    .education-school {
        word-wrap: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }

    .experience-description,
    .education-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .skill-tag {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .linkedin-about-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure settings tab fills screen width on mobile */
    .tab-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .form-input,
    .form-textarea,
    .form-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .linkedin-profile-info h3 {
        font-size: 17px;
    }

    .linkedin-headline {
        font-size: 12px;
    }

    .linkedin-section h4 {
        font-size: 14px;
    }

    .experience-header h5 {
        font-size: 13px;
    }

    .education-header h5 {
        font-size: 12px;
    }

    .linkedin-skills-list {
        justify-content: center;
        gap: 4px;
    }

    .skill-tag {
        font-size: 11px;
        padding: 3px 6px;
    }

    .linkedin-actions {
        flex-direction: column;
        width: 100%;
    }

    .linkedin-actions .btn-primary,
    .linkedin-actions .btn-secondary,
    .linkedin-actions .btn-outline {
        width: 100%;
        font-size: 13px;
        padding: 6px 10px;
    }

    .linkedin-url a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .linkedin-meta {
        font-size: 10px;
    }
}

/* Website Management Styles */
.website-input-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.website-add-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.website-add-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.website-add-btn:active {
    background: #cbd5e1;
}

.website-status {
    margin-top: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.website-status.success {
    color: #059669;
}

.website-status.error {
    color: #dc2626;
}

.website-status.processing {
    color: #d97706;
}

/* Website Management Section */
.website-management {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Website Processing Status */
.website-processing {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.processing-spinner {
    color: #3b82f6;
}

.processing-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.processing-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Active Website Card */
.active-website-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.website-card-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.website-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.website-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.website-url:hover {
    text-decoration: underline;
}

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

.btn-outline-small {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-small:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-outline-small:active {
    background: #f3f4f6;
}

.btn-primary-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-primary-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.btn-primary-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-danger-small {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-small:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.btn-danger-small:active {
    background: #b91c1c;
    transform: translateY(0);
}

.btn-danger-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Website Summary */
.website-summary {
    padding: 24px;
}

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

.summary-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.summary-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.summary-date::before {
    content: "📅 ";
}

.summary-quality::before {
    content: "⭐ ";
}

.pages-count::before {
    content: "📄 ";
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scraped URLs Management */
.scraped-urls-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.scraped-urls-section .section-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scraped-urls-section .section-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

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

.scraped-urls-list {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.url-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.url-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.url-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.url-icon {
    flex-shrink: 0;
    color: #64748b;
}

.url-details {
    flex: 1;
    min-width: 0;
}

.url-path {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    word-break: break-all;
    margin-bottom: 2px;
}

.url-inline {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.url-domain {
    font-size: 12px;
    color: #64748b;
}

.url-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.url-status.success {
    color: #059669;
}

.url-status.error {
    color: #dc2626;
}

.url-status.pending {
    color: #d97706;
}

.url-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-action-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

.url-action-btn.remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

.urls-stats {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* URL Edit Modal */
.url-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.url-edit-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.url-edit-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.url-edit-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
}

.url-edit-modal-close:hover {
    background: #f1f5f9;
    color: #374151;
}

.url-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.url-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.url-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.url-input-group input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.url-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.url-edit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Delete Website Modal Styles */
.delete-website-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease-out;
}

.delete-website-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.delete-website-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    z-index: 1001;
}

.delete-website-modal-header {
    padding: 24px 24px 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.delete-warning-icon {
    color: #dc2626;
    flex-shrink: 0;
}

.delete-website-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    flex-grow: 1;
}

.delete-website-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    position: absolute;
    top: 16px;
    right: 16px;
}

.delete-website-modal-close:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.delete-website-modal-body {
    padding: 24px;
}

.delete-confirmation-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.5;
}

.delete-effects-list {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.delete-effect-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #991b1b;
    line-height: 1.4;
}

.delete-effect-item:last-child {
    margin-bottom: 0;
}

.delete-effect-item svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #dc2626;
}

.delete-confirmation-input {
    margin-bottom: 0;
}

.delete-confirmation-input label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.delete-confirmation-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.delete-confirmation-input input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.delete-website-modal-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.delete-website-modal-actions button {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 100px;
}

.delete-website-modal-actions .btn-danger {
    background-color: #dc2626;
    border: 1px solid #dc2626;
    color: white;
}

.delete-website-modal-actions .btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.delete-website-modal-actions .btn-danger:disabled {
    background-color: #fca5a5;
    border-color: #fca5a5;
    cursor: not-allowed;
    opacity: 0.6;
}

.delete-website-modal-actions .btn-outline {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.delete-website-modal-actions .btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* URL Removal Modal Styles */
.url-removal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease-out;
}

.url-removal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.url-removal-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    z-index: 1001;
}

.url-removal-modal-header {
    padding: 24px 24px 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.url-removal-warning-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.url-removal-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    flex-grow: 1;
}

.url-removal-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    position: absolute;
    top: 16px;
    right: 16px;
}

.url-removal-modal-close:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.url-removal-modal-body {
    padding: 24px;
}

.url-removal-confirmation-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.5;
}

.url-removal-details {
    background-color: #fefce8;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
}

.url-to-remove {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.url-to-remove strong {
    color: #92400e;
}

#urlToRemoveDisplay {
    display: block;
    margin-top: 4px;
    color: #92400e;
    word-break: break-all;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background-color: #fffbeb;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #fcd34d;
}

.url-removal-effects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.url-removal-effect {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #92400e;
    line-height: 1.4;
}

.url-removal-effect svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

.url-removal-modal-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.url-removal-modal-actions button {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 100px;
}

.url-removal-modal-actions .btn-danger {
    background-color: #f59e0b;
    border: 1px solid #f59e0b;
    color: white;
}

.url-removal-modal-actions .btn-danger:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.url-removal-modal-actions .btn-outline {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.url-removal-modal-actions .btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.summary-section h6 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-section p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.summary-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.services-list,
.pain-points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.services-list span,
.pain-points-list span,
.service-item,
.pain-point-item {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: inline-block;
    margin: 2px 0;
}

.services-list .service-item,
.pain-points-list .pain-point-item {
    background: #e0f2fe;
    color: #0369a1;
}

.pain-points-list .pain-point-item {
    background: #fef3c7;
    color: #92400e;
}

/* Website History */
.website-history {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.website-history h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.history-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.history-meta {
    font-size: 12px;
    color: #64748b;
}

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

/* Ultra-Compact Website Analysis Styles */

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.section-title-row h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.section-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
}

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

.compact-item {
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    border-left: 2px solid #e5e7eb;
    padding-left: 12px;
    margin-left: 0;
}

.compact-item:first-child {
    border-left-color: #3b82f6;
}

.compact-item:nth-child(2) {
    border-left-color: #10b981;
}

.compact-item:nth-child(3) {
    border-left-color: #f59e0b;
}

/* Minimal Edit Buttons */
.edit-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    opacity: 1; /* Always visible */
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.section-title-row:hover .edit-btn {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
}

.edit-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .website-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .website-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .summary-content {
        gap: 12px;
    }

    .summary-section {
        padding-bottom: 12px;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .compact-list {
        gap: 4px;
    }

    .compact-item {
        padding: 4px 0;
        padding-left: 10px;
        font-size: 12px;
    }
}


/* Edit Modal Styles */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.edit-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.edit-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.edit-modal-header h3 .field-type-indicator {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-left: 8px;
}

.edit-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.edit-modal-close:hover {
    color: #ef4444;
}

.edit-modal-body {
    margin-bottom: 24px;
}

.edit-modal-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.edit-modal-body textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-modal-body .field-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

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

/* Array Editor Styles */
.array-editor {
    width: 100%;
}

.array-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.array-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.array-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.array-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.array-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.array-item-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.array-item-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.array-item-actions {
    display: flex;
    gap: 4px;
}

.array-item-btn {
    padding: 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.array-item-btn:hover {
    background: #e2e8f0;
}

.array-item-btn.delete-btn:hover {
    background: #fecaca;
}

.array-item-btn svg {
    width: 14px;
    height: 14px;
}

.btn-outline-small {
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-outline-small:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* URL Discovery Modal */
.url-discovery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.url-discovery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.url-discovery-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    margin: 2vh auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

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

.url-discovery-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.url-discovery-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.url-discovery-body {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.url-discovery-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.loading-spinner {
    color: #3b82f6;
    margin-bottom: 20px;
}

.loading-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.loading-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    max-width: 300px;
    line-height: 1.5;
}

.url-discovery-stats p {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 14px;
}

.already-added-notice {
    color: #059669 !important;
    font-weight: 500 !important;
}

.cache-notice {
    color: #0891b2 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.url-discovery-selection-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.select-all-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.selection-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.url-item-checkbox {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.url-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.url-discovery-add-single {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.url-discovery-add-single:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.no-new-urls {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-new-urls p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.no-new-urls p:last-child {
    margin-bottom: 0;
    font-size: 13px;
    color: #94a3b8;
}

.url-discovery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.url-discovery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.url-discovery-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

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

.url-discovery-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.url-discovery-url {
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.url-discovery-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.url-discovery-priority.priority-high {
    background: #dcfce7;
    color: #166534;
}

.url-discovery-priority.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.url-discovery-priority.priority-low {
    background: #f3f4f6;
    color: #374151;
}

.url-discovery-add {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.url-discovery-add:hover {
    background: #2563eb;
}

.url-discovery-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

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

.regeneration-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.regeneration-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 420px;
    width: 90%;
    margin: 20px;
}

.regeneration-modal-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.regeneration-icon {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 16px;
    flex-shrink: 0;
}

.regeneration-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.regeneration-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.regeneration-modal-close:hover {
    background-color: #f1f5f9;
    color: #374151;
}

.regeneration-modal-body {
    padding: 20px 24px;
}

.regeneration-modal-body p {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
}

.regeneration-note {
    color: #64748b !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

.regeneration-options {
    margin-top: 8px;
}

.regeneration-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.regeneration-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.regeneration-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #667eea;
}

.regeneration-option label {
    flex: 1;
    cursor: pointer;
}

.regeneration-option strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.regeneration-option span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.regeneration-option input[type="radio"]:checked + label {
    color: #667eea;
}

.regeneration-option input[type="radio"]:checked + label strong {
    color: #667eea;
}

/* Re-scrape Warning Modal */
.rescrape-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rescrape-warning-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rescrape-warning-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 2vh auto;
}

.rescrape-warning-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fef2f2;
    border-radius: 12px 12px 0 0;
}

.warning-icon {
    color: #dc2626;
    flex-shrink: 0;
}

.rescrape-warning-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
    flex: 1;
}

.rescrape-warning-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.rescrape-warning-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.rescrape-warning-modal-body {
    padding: 20px 24px;
}

.warning-message {
    color: #374151;
}

.warning-message p {
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.warning-message ul {
    margin: 8px 0 16px 0;
    padding-left: 20px;
}

.warning-message li {
    margin-bottom: 4px;
    color: #4b5563;
}

.warning-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    color: #92400e;
    margin-top: 16px;
}

.rescrape-warning-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.regeneration-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Company Analysis Styles */
.company-analysis-content {
    width: 100%;
}

.analysis-status {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-loading {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.status-loading .loading-spinner {
    flex-shrink: 0;
}

.status-loading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.status-available,
.status-recent,
.status-none {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.status-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.status-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.status-content p {
    margin: 0 0 16px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.analysis-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    margin-bottom: 24px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.section-header-row h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.edit-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-list-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
}

.analysis-list-item h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.analysis-list-item p {
    margin: 0 0 8px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.analysis-list-item .item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analysis-list-item .detail-item {
    font-size: 13px;
    color: #64748b;
    padding-left: 12px;
    border-left: 2px solid #e2e8f0;
}

.segmented-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.segment-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
}

.segment-group h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.segment-group .segment-pains,
.segment-group .segment-outcomes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.segment-group .pain-item,
.segment-group .outcome-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.analysis-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    line-height: 1.6;
    color: #475569;
    font-size: 14px;
}

.analysis-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 24px;
}

.analysis-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
}

/* Responsive adjustments for analysis */
@media (max-width: 768px) {
    .analysis-status {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .analysis-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .analysis-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Object Editor Styles */
.object-editor {
    max-height: 400px;
    overflow-y: auto;
}

.object-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.object-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.object-editor-container {
    margin-bottom: 16px;
}

.object-segment {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8fafc;
}

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

.segment-name-container {
    flex: 1;
}

.segment-name-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.segment-name-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.segment-name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remove-segment-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-left: 8px;
}

.remove-segment-btn:hover {
    background-color: #fef2f2;
}

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

.items-list {
    margin-bottom: 12px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.item-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.item-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
    background-color: #fef2f2;
}

.add-item-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.add-item-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.empty-object-state {
    text-align: center;
    padding: 24px;
    color: #6b7280;
}

.empty-object-state p {
    margin: 0;
    font-size: 14px;
}

.btn-outline-small {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-outline-small:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-outline-small svg {
    width: 12px;
    height: 12px;
}

