/* War Room Toolkit Styles for Elementor */
#warroom-toolkit-app {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.landing-hero {
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: none;
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: #2563eb;
    color: white;
}

.btn-secondary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-icon {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* App Container */
.app-container {
    background: white;
    min-height: 100vh;
}

.app-header {
    background: #1f2937;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Dashboard Styles */
.tools-dashboard, .knowledge-dashboard, .tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tools-header, .knowledge-header {
    text-align: center;
    margin-bottom: 40px;
}

.tools-header h1, .knowledge-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.tools-header p, .knowledge-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #dc2626;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.tool-card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.stat {
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Quick Stats Section */
.quick-stats-section {
    margin-top: 50px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
}

.quick-stats-section h3 {
    margin-bottom: 25px;
    color: #1f2937;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-icon.total { background: #dc2626; }
.stat-icon.completed { background: #059669; }
.stat-icon.pending { background: #d97706; }
.stat-icon.overdue { background: #dc2626; }

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* WordPress Admin Bar Adjustment */
.admin-bar .app-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .app-header {
        top: 46px;
    }
}

/* Knowledge Base Styles */
.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.learning-path-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.learning-path-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.path-card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.path-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.path-icon.candidate {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.path-icon.campaignTeam {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.path-content h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1.4rem;
}

.path-content p {
    margin: 0 0 15px 0;
    color: #6b7280;
    line-height: 1.5;
}

.path-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.path-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.9rem;
}

.path-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Form Styles */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Badge Styles */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: #374151;
}

/* Add more styles from your original CSS as needed */

/* Add these to your existing CSS file */

/* Real-time Features */
.updating {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Analysis Progress */
.analysis-progress {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s ease;
    width: 0%;
}

/* Enhanced Sentiment Display */
.overall-sentiment-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    border-left: 4px solid #3b82f6;
}

.sentiment-score {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
    color: #1f2937;
}

.score-details {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 15px 0;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
}

.score-label {
    color: #6b7280;
    font-size: 1rem;
}

.confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Enhanced Comments */
.comment-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comment-item.positive {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.comment-item.negative {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.comment-item.neutral {
    border-left-color: #6b7280;
    background: #f9fafb;
}

.comment-text {
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #374151;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sentiment-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sentiment-badge.positive {
    background: #d1fae5;
    color: #065f46;
}

.sentiment-badge.negative {
    background: #fee2e2;
    color: #991b1b;
}

.sentiment-badge.neutral {
    background: #f3f4f6;
    color: #374151;
}

.language-badge, .polarity, .confidence, .author {
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

/* Enhanced Language Breakdown */
.language-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.language-item:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.language-name {
    font-weight: 600;
    color: #1f2937;
}

.language-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.sentiment-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.sentiment-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.sentiment-fill.positive {
    background: #10b981;
}

.sentiment-fill.negative {
    background: #ef4444;
}

.sentiment-fill.neutral {
    background: #6b7280;
}

.sentiment-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Chatbot Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Enhanced Volunteer Management */
.volunteer-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.volunteer-notes {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
    line-height: 1.4;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #64748b;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.badge.status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.badge.role-canvasser { background: #dbeafe; color: #1e40af; }
.badge.role-phone_banker { background: #f3e8ff; color: #7e22ce; }
.badge.role-event_staff { background: #fef3c7; color: #92400e; }
.badge.role-coordinator { background: #dcfce7; color: #166534; }
.badge.role-social_media { background: #fce7f3; color: #be185d; }
.badge.role-data_entry { background: #ffedd5; color: #c2410c; }

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-icon {
    padding: 6px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-icon.btn-danger {
    color: #dc2626;
}

.btn-icon.btn-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Search Functionality */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Real-time Data Cards */
.live-data-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #dc2626;
    margin-bottom: 20px;
}

.live-data-card h4 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.live-data-value {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    margin: 5px 0;
}

.live-data-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Export Section */
.export-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .export-section {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .score-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .score-value {
        font-size: 2rem;
    }
}