/* ==========================================================================
   Problems System Styles
   Unified with the Global Teal Design System (#46837E)
   ========================================================================== */

.problems-section, .problem-create-section, .problem-section {
    background: var(--bg-body);
    min-height: 100vh;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.problems-bg-gradient, .create-bg-gradient, .problem-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(106, 165, 159, 0.1) 100%);
    z-index: 0;
}

/* Hero Section */
.problems-hero, .problem-hero {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Cards */
.modern-problem-card, .modern-form-card, .modern-thread-card, .response-form-card, .help-card, .stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.modern-problem-card:hover, .modern-form-card:hover, .modern-thread-card:hover, .response-form-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-soft);
}

/* Status Badges */
.status-badge, .filter-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.pending, .filter-badge.pending {
    background: rgba(236, 201, 75, 0.1);
    color: var(--warning-color);
}

.status-badge.in-progress, .status-badge.in_progress, .filter-badge.in-progress {
    background: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

.status-badge.resolved, .filter-badge.resolved {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

/* Buttons */
.btn-create-problem, .btn-submit, .btn-view-problem, .btn-primary-modern {
    background: var(--primary-color);
    color: var(--text-light) !important;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-soft);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-create-problem:hover, .btn-submit:hover, .btn-view-problem:hover, .btn-primary-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-soft);
}

.btn-success-modern {
    background: var(--success-color);
    color: var(--text-light) !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
}

/* Sidebar & Filters */
.filters-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.filter-option:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
    transform: translateX(4px);
}

.filter-option.active {
    background: var(--primary-color);
    color: var(--text-light) !important;
}

/* Inputs */
.modern-input, .modern-textarea, .search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--white);
}

.modern-input:focus, .modern-textarea:focus, .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-rgba);
}

/* Thread Styles */
.thread-message {
    padding: 24px;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    gap: 20px;
}

.message-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-soft);
}

.message-author {
    font-weight: 700;
    color: var(--text-primary);
}

.author-badge.consultant {
    background: var(--primary-soft);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Stats */
.stat-card {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

.shape-1 { width: 300px; height: 300px; background: var(--primary-color); top: 10%; right: 5%; }
.shape-2 { width: 200px; height: 200px; background: var(--info-color); bottom: 15%; left: 8%; animation-delay: 5s; }
.shape-3 { width: 150px; height: 150px; background: var(--secondary-color); top: 50%; left: 45%; animation-delay: 10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 40px) rotate(180deg); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .modern-problem-card { flex-direction: column; }
    .thread-message { flex-direction: column; }
}
