/* Admin Dashboard Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.875rem;
    color: #666;
}

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

#personal-settings-link {
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.signout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

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

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.welcome-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
}

/* Action Cards */


.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.action-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.action-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.back-button {
    color: #667eea;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.back-button:hover {
    text-decoration: underline;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.section-card h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.25rem;
}

/* Forms */
.invite-form {
    max-width: 600px;
}

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

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
}

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

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

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

.btn-primary:hover {
    background: #5a6fd8;
}

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

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

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

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

.btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Messages */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Team Members */
.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

#invite-section {
    display: none;
}

#remove-message {
    display: none;
}

#admin-section {
    display: none;
}

#billing-section {
    display: none;
}

/*#dangerous-actions-content {
    display: none;
}
    */

#delete-org-section {
    display: none;
}

#dangerous-actions-content.hidden,
#role-message.hidden,
.loading.hidden,
#admin-section.hidden,
#billing-section.hidden,
#delete-org-section.hidden,
#remove-modal.hidden,
#role-modal.hidden,
#invite-section.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.info-text {
    margin-bottom: 20px;
}

.help-section {
    margin-top: 40px;
}

.help-list {
    margin-top: 15px;
    padding-left: 20px;
}

#multi-org-section.hidden,
#delete-step-2.hidden,
#delete-step-3.hidden,
#success-section.hidden,
#error-section.hidden {
    display: none !important;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.member-email {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.member-role {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.role-admin {
    background: #fff3cd;
    color: #856404;
}

.role-member {
    background: #e2e3e5;
    color: #383d41;
}

.member-joined {
    color: #999;
    font-size: 0.75rem;
}

.current-user-badge {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    min-width: 60px;
}

/* Style for current user actions container */
.member-actions.current-user-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Invitations */
.invitation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

.invitation-info {
    flex: 1;
}

.invitation-email {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.invitation-role {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.invitation-date,
.invitation-expires {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

/* Loading and Empty States */
.loading-placeholder {
    text-align: center;
    color: #666;
    padding: 40px;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 20px;
}

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

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1001;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 15px;
    color: #666;
}

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

.modal-body {
    margin-bottom: 20px;
}

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

.warning {
    color: #dc3545;
    font-weight: 500;
}

/* Step actions within modals */
.step-actions {
    margin-top: 20px;
    text-align: center;
}

.step-actions .btn {
    margin: 0 10px;
}

/* ===== DANGEROUS ACTION MODALS ===== */
.delete-account-modal .modal-content,
.delete-org-modal .modal-content {
    max-width: 600px;
}

.leave-modal {
    max-width: 500px;
}

/* Form elements in dangerous action modals */
.delete-account-modal .form-group,
.delete-org-modal .form-group {
    margin: 20px 0;
}

.delete-account-modal .form-group label,
.delete-org-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.delete-account-modal .form-group input,
.delete-org-modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

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

/* Warning text in dangerous action modals */
.delete-account-modal .warning-text,
.delete-org-modal .warning-text {
    color: #dc3545;
    font-weight: 600;
    margin: 15px 0;
}

/* Loading placeholders in dangerous action modals */
.delete-account-modal .loading-placeholder,
.delete-org-modal .loading-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.delete-account-modal .loading-placeholder p,
.delete-org-modal .loading-placeholder p {
    margin: 10px 0;
    color: #666;
}

/* Delete organization specific warnings */
.delete-org-modal .delete-org-warnings {
    margin: 20px 0;
}

.delete-org-modal .delete-org-warnings h4 {
    color: #dc3545;
    margin-bottom: 10px;
}

.delete-org-modal .delete-org-warnings ul {
    color: #856404;
    margin: 10px 0;
    padding-left: 20px;
}

.delete-org-modal .delete-org-warnings li {
    margin: 5px 0;
}

/* Duplicate rules removed - now handled by consolidated modal system above */

/* Duplicate rules removed - now handled by consolidated modal system above */

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-details {
        text-align: center;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .action-card {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .team-member,
    .invitation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
            .stat-number {
            font-size: 1.5rem;
        }
        
        .action-title {
            font-size: 1rem;
        }
}

/* Organization Settings Styles */
.org-details {
    display: grid;
    gap: 15px;
}

.org-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.org-detail label {
    font-weight: 600;
    color: #333;
}

.org-detail span {
    color: #666;
}

.update-form {
    max-width: 500px;
}

.warning-text {
    color: #dc3545;
    background: #f8d7da;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.organizations-list {
    display: grid;
    gap: 15px;
}

.organization-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.organization-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.organization-item.current-org {
    border-color: #667eea;
    background: #f8f9ff;
}

.org-info {
    flex: 1;
}

.org-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.org-role {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px;
}

.org-joined {
    font-size: 0.75rem;
    color: #999;
}

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

/* Responsive adjustments for organization page */
@media (max-width: 768px) {
    .organization-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .org-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Organization Selector Styles */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.organization-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.organization-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    border-color: #667eea;
}

.organization-card.current-org {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    cursor: default;
}

.organization-card.current-org:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.org-card-icon {
    font-size: 2rem;
}

.org-card-role {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-card-body {
    margin-bottom: 20px;
}

.org-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.org-card-joined {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.org-card-footer {
    text-align: center;
}

.org-card-footer .btn {
    width: 100%;
}

.current-org-badge {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: inline-block;
    width: 100%;
}

/* Responsive adjustments for organization selector */
@media (max-width: 768px) {
    .organizations-grid {
        grid-template-columns: 1fr;
    }
    
    .organization-card {
        padding: 20px;
    }
} 

/* Survey Management Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.survey-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
}

.survey-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.survey-info {
    flex: 1;
}

.survey-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1.125rem;
}

.survey-description {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.survey-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: #999;
}

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

.survey-modal-content {
    max-width: 800px;
    width: 90%;
}

/* Duplicate rule removed - now handled by consolidated modal system above */

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.survey-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.survey-feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.survey-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.feature-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
}

.create-survey-form {
    max-width: 600px;
}

.quick-team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quick-stat {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.quick-stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.billing-placeholder {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for survey management */
@media (max-width: 768px) {
    .survey-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .survey-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .survey-features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .quick-team-stats {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* Delete Organization Section */
.delete-org-section {
    border: 2px solid #dc3545;
    background-color: #fff5f5;
}

.delete-org-warnings {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.delete-org-warnings h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
}

.delete-org-warnings ul {
    color: #856404;
    margin: 10px 0;
    padding-left: 20px;
}

.delete-org-warnings li {
    margin: 5px 0;
}

/* Duplicate rules removed - now handled by consolidated modal system above */ 

/* Personal Settings Styles */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.profile-detail label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.profile-detail span {
    color: #666;
    text-align: right;
}

.edit-form {
    max-width: 500px;
}

.form-help {
    color: #856404;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.organizations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.organization-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.organization-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.organization-item.current-org {
    border-color: #28a745;
    background-color: #f8fff9;
}

.org-info {
    flex: 1;
}

.org-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.org-role {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 3px;
}

.org-joined {
    color: #999;
    font-size: 0.75rem;
}

.org-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.delete-account-warnings {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.delete-account-warnings h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
}

.delete-account-warnings ul {
    color: #856404;
    margin: 10px 0;
    padding-left: 20px;
}

.delete-account-warnings li {
    margin: 5px 0;
}

.info-text {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.875rem;
}

/* Duplicate rules removed - now handled by consolidated modal system above */ 

/* Pending Email Changes Styles */
.pending-email-changes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-email-change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.pending-email-change:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.pending-email-change.expired {
    border-color: #6c757d;
    background-color: #f8f9fa;
    opacity: 0.7;
}

.change-info {
    flex: 1;
}

.change-details {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expired-badge {
    background-color: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: normal;
}

.change-meta {
    color: #666;
    font-size: 0.875rem;
    display: flex;
    gap: 20px;
}

.change-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Email Change Confirmation Styles */
.email-change-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.email-change-summary p {
    margin: 8px 0;
    color: #495057;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-buttons .btn {
    min-width: 120px;
} 

/* Dangerous Actions Section Styles */
.dangerous-actions-card {
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.dangerous-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dangerous-actions-header:hover {
    background: rgba(220, 53, 69, 0.05);
}

.dangerous-actions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dc3545;
    margin: 0;
    font-size: 1.5rem;
}

.danger-icon {
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.dangerous-actions-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 500;
}

.toggle-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.toggle-arrow.expanded {
    transform: rotate(180deg);
}

.dangerous-actions-content {
    border-top: 1px solid rgba(220, 53, 69, 0.2);
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 8px 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

.dangerous-actions-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.dangerous-actions-warning p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

.dangerous-action-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.2s ease;
}

.dangerous-action-item:hover {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.dangerous-action-item:last-child {
    margin-bottom: 0;
}

.dangerous-action-item h3 {
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.dangerous-action-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.dangerous-action-item .btn {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dangerous-actions-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dangerous-actions-toggle {
        justify-content: center;
    }
}

/* Share Modal Styles */
.share-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.share-content {
    padding: 20px;
}

.access-control-section,
.token-section,
.share-links-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.access-control-section h4,
.token-section h4,
.share-links-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    min-width: 100px;
}

.form-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

.token-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.token-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.token-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.token-options input[type="radio"] {
    margin: 0;
}

.token-options input[type="number"] {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tokens-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    min-height: 100px;
}

.token-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
    background: white;
}

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

.token-info {
    flex: 1;
}

.token-token {
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.token-details {
    font-size: 0.875rem;
    color: #666;
}

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

.link-item {
    margin-bottom: 20px;
}

.link-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

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

.link-display input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    font-family: monospace;
    font-size: 0.875rem;
}

.copy-btn {
    padding: 10px 15px;
    white-space: nowrap;
}

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

/* Responsive Share Modal */
@media (max-width: 768px) {
    .share-modal-content {
        max-width: 95vw;
        margin: 20px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .form-group select {
        min-width: auto;
    }
    
    .token-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .link-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn {
        align-self: stretch;
    }
} 

/* Token Management Styling */
.token-controls {
    margin-bottom: 20px;
}

.token-options {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.token-options .form-group {
    margin-bottom: 15px;
}

.token-options .form-group:last-child {
    margin-bottom: 0;
}

.token-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.token-options .radio-group {
    display: flex;
    gap: 20px;
}

.token-options .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.token-options .radio-group input[type="radio"] {
    margin: 0;
}

.token-options input[type="number"],
.token-options select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.token-options input[type="number"]:focus,
.token-options select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Create Survey Modal Styles */
#create-survey-modal .form-group {
    margin-bottom: 20px;
}

#create-survey-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#create-survey-modal .form-group input,
#create-survey-modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

#create-survey-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#create-survey-modal .form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

/* Language Dropdown Styles */
.add-language-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#language-selector {
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

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

.add-language-btn {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.active-languages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.language-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.language-item.active {
    border-color: #28a745;
    background: #f8fff9;
}

.language-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-flag {
    font-size: 20px;
}

.language-name {
    font-weight: 600;
    color: #333;
}

.language-code {
    color: #666;
    font-size: 0.9em;
    font-family: monospace;
}

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

.default-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.remove-language-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.remove-language-btn:hover {
    background: #dc3545;
    color: white;
}

.language-info p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Language Modal Styles */
.translation-method-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.translation-method-options .form-check {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.translation-method-options .form-check:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.translation-method-options .form-check-input:checked + .form-check-label {
    color: #667eea;
    font-weight: 600;
}

.translation-method-options .form-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 5px;
}

.translation-method-options .form-check-label i {
    font-size: 18px;
    width: 20px;
}

.translation-method-options .form-text {
    margin-left: 30px;
    font-style: italic;
}

#auto-translate-options {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#auto-translate-options .form-check {
    margin-bottom: 10px;
}

#auto-translate-options .form-check:last-child {
    margin-bottom: 0;
}

/* Translation Content Styles */
.translation-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.translation-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

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

.translation-section-title {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.translation-section-title i {
    color: #667eea;
}

.translation-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.translation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.translation-item-label {
    min-width: 120px;
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.translation-item-content {
    flex: 1;
    display: flex;
    gap: 10px;
}

.translation-input-group {
    flex: 1;
}

.translation-input-group label {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.translation-input-group input,
.translation-input-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

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

.translation-input-group textarea {
    resize: vertical;
    min-height: 60px;
}

.translation-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
}

.translation-status.translated {
    color: #28a745;
}

.translation-status.missing {
    color: #dc3545;
}

.translation-status.partial {
    color: #ffc107;
}

/* Translation Editing Modal - Clean Fullscreen Styles */
#translationEditingModal {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1055 !important;
}

#translationEditingModal .modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#translationEditingModal .modal-content {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#translationEditingModal .modal-body {
    height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    padding: 20px !important;
    width: 100% !important;
}

#translationEditingModal + .modal-backdrop {
    z-index: 1054 !important;
}

/* Override general modal centering for fullscreen modal */
#translationEditingModal.modal.show {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

/* Translation Editing Modal Styles */
.translation-editing-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 160px);
}

.translation-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.translation-header-info .language-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.translation-header-info .language-flag {
    font-size: 24px;
}

.translation-header-info .language-info span:not(.language-flag) {
    font-weight: 600;
    color: #333;
}

.translation-header-info .translation-actions {
    display: flex;
    gap: 10px;
}

/* Fullscreen modal content */
#modal-translation-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

#modal-translation-content .translation-section {
    margin-bottom: 30px;
}

#modal-translation-content .translation-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

#modal-translation-content .translation-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

#modal-translation-content .translation-item-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

#modal-translation-content .translation-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#modal-translation-content .translation-input-group label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#modal-translation-content .translation-input-group input,
#modal-translation-content .translation-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    min-height: 50px;
}

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

#modal-translation-content .translation-input-group input[readonly] {
    background: #f8f9fa;
    color: #666;
    font-style: italic;
    border-color: #dee2e6;
}

.translation-overview {
    padding: 20px;
}

.translation-tips {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.translation-tips h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.translation-tips ul {
    margin: 0;
    padding-left: 20px;
}

.translation-tips li {
    margin-bottom: 8px;
    color: #666;
}

/* Billing Preview Styles */
.billing-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.billing-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.billing-status:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 500;
    color: #6c757d;
}

.status-value {
    font-weight: 600;
    color: #495057;
}

.status-value.free {
    color: #28a745;
}

.status-value.pro {
    color: #007bff;
}

.status-value.enterprise {
    color: #6f42c1;
}

/* Responsive adjustments for token options */
@media (max-width: 768px) {
    .token-options .radio-group {
        flex-direction: column;
        gap: 10px;
    }
} 