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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 2.5rem;
    color: #ff4500;
    margin-bottom: 10px;
}


.search-section {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #ff4500;
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.search-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.filter-controls {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-type input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #ff4500;
    cursor: pointer;
}

.filter-type label {
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

.time-select,
.date-input {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}

.time-select:disabled,
.date-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.time-select:focus,
.date-input:focus {
    outline: none;
    border-color: #ff4500;
}

.date-input {
    color-scheme: dark;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #ff4500;
}

.error {
    background: #2a1111;
    border: 1px solid #cc0000;
    color: #ffaaaa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.profile-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.profile-info h2 {
    color: #ff4500;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4500;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

.activity-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
}

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

.activity-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #ff4500;
    border-color: #ff4500;
}

.tab-btn.error-tab {
    color: #ff6b6b !important;
    border-color: #ff6b6b !important;
}

.tab-btn.error-tab.active {
    background: #ff6b6b !important;
    color: white !important;
}

.activity-list {
    max-height: 800px;
    overflow-y: auto;
    resize: vertical;
    min-height: 400px;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
}

.activity-item {
    background: #2a2a2a;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff4500;
}

.removed-item {
    background: #2a1a1a;
    border-left: 4px solid #ff6b6b;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.removal-reason {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.removed-content {
    color: #999;
    font-style: italic;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.activity-content {
    color: #fff;
    line-height: 1.5;
}

.subreddit-tag {
    background: #ff4500;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.karma-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.karma-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
}

.karma-card.warning .karma-value {
    color: #ffc107;
}

.karma-card.danger .karma-value {
    color: #dc3545;
}

.karma-card.health-excellent {
    border-color: #28a745;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a2f1a 100%);
}

.karma-card.health-good {
    border-color: #ffc107;
    background: linear-gradient(135deg, #1a1a1a 0%, #2f2a1a 100%);
}

.karma-card.health-average {
    border-color: #fd7e14;
    background: linear-gradient(135deg, #1a1a1a 0%, #2f1f1a 100%);
}

.karma-card.health-poor {
    border-color: #dc3545;
    background: linear-gradient(135deg, #1a1a1a 0%, #2f1a1a 100%);
}

.health-status {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

.shadowban-status {
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    border-left: 4px solid;
}

.shadowban-confirmed {
    background: #2f1a1a;
    border-left-color: #dc3545;
    color: #ffcdd2;
}

.shadowban-possible {
    background: #2f2a1a;
    border-left-color: #ffc107;
    color: #fff3cd;
}

.shadowban-clear {
    background: #1a2f1a;
    border-left-color: #28a745;
    color: #d4edda;
}

.shadowban-unknown {
    background: #1a1a2f;
    border-left-color: #6c757d;
    color: #d1ecf1;
}

.confidence {
    font-size: 11px;
    opacity: 0.8;
    font-style: italic;
}

.scanning-skipped-warning {
    display: flex;
    align-items: flex-start;
    background: #2f2a1a;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    color: #fff3cd;
}

.warning-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    margin-bottom: 4px;
    color: #ffc107;
}

.warning-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.karma-title {
    color: #ff4500;
    font-weight: 600;
    margin-bottom: 10px;
}

.karma-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.no-removed-content {
    text-align: center;
    color: #28a745;
    padding: 40px;
}

.no-removed-content .success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
    }

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

    .search-input {
        min-width: 100%;
    }
}

/* Charts */
.charts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.chart-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chart-card {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.chart-card.full-width {
    width: 100%;
    flex: 1 1 100%;
}

.chart-card h3 {
    color: #d7dadc;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}