/* Slack Reactions Analyzer - Main Stylesheet */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

h1, h2, h3 {
    color: #1C64F2;
}

h1 {
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.post.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.post-content {
    white-space: pre-wrap;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #F9FAFB;
    border-radius: 4px;
    border-left: 4px solid #1C64F2;
}

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

.reaction-section {
    margin-bottom: 15px;
}

.reaction-section h3 {
    margin-bottom: 8px;
    color: #1C64F2;
    font-size: 16px;
}

.reaction-list {
    background-color: #F9FAFB;
    border-radius: 4px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.positive {
    border-left: 4px solid #10B981;
}

.negative {
    border-left: 4px solid #EF4444;
}

.other {
    border-left: 4px solid #F59E0B;
}

.no-reaction {
    border-left: 4px solid #6B7280;
}

.stats {
    margin-top: 15px;
    font-size: 14px;
    color: #6B7280;
}

.post-number {
    font-weight: bold;
    color: #1C64F2;
}

.author {
    font-weight: bold;
}

.count-badge {
    display: inline-block;
    background-color: #E5E7EB;
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

.summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.timestamp {
    font-size: 12px;
    color: #6B7280;
}

.reaction-tag {
    display: inline-block;
    background-color: #E5E7EB;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.info-box {
    background-color: #EDF2F7;
    border-left: 4px solid #4299E1;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #1C64F2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #1551c9;
}

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

.progress-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.step-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E5E7EB;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 12px;
}

.step-indicator.active {
    background-color: #1C64F2;
    color: white;
}

.step-indicator.completed {
    background-color: #10B981;
    color: white;
}

.step-text {
    flex-grow: 1;
}

.step-status {
    font-size: 14px;
    color: #6B7280;
}

.configure-link {
    display: inline-block;
    margin-top: 10px;
    color: #4299E1;
    text-decoration: none;
}

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

.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #1C64F2;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

#posts-container {
    min-height: 200px;
}

.error-box {
    background-color: #FFF5F5;
    border-left: 4px solid #F56565;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.error-message {
    color: #C53030;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reactions {
        grid-template-columns: 1fr;
    }
    
    .post {
        padding: 15px;
    }
}