/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo i {
    font-size: 28px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

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

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.user-name i {
    font-size: 24px;
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar form {
    display: flex;
    gap: 0;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    padding: 12px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #34495e;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.hero p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding-bottom: 40px;
}

.main-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Complaint Card */
.complaint-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.complaint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.complaint-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.company-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.category-badge {
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.date {
    color: #95a5a6;
    font-size: 12px;
    margin-left: auto;
}

.complaint-card h3 {
    margin-bottom: 10px;
}

.complaint-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
}

.complaint-card h3 a:hover {
    color: #e74c3c;
}

.complaint-card p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

.complaint-footer {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background: #e8f5e9;
    color: #27ae60;
}

.status.resolved {
    background: #e3f2fd;
    color: #2980b9;
}

.comments-count {
    color: #95a5a6;
    font-size: 13px;
}

.comments-count i {
    margin-right: 5px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
}

.category-list li a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.category-list li a i {
    width: 20px;
    color: #e74c3c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.page-link:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.page-link.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Complaint Detail Page */
.complaint-detail {
    padding: 30px 0;
}

.back-link {
    display: inline-block;
    color: #7f8c8d;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-link:hover {
    color: #e74c3c;
}

.complaint-full {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.complaint-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.complaint-full h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.complaint-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.complaint-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.complaint-actions .btn {
    color: #2c3e50;
    border-color: #ddd;
}

.complaint-actions .btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comments-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.comment-card {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.comment-card:last-child {
    border-bottom: none;
}

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

.comment-header strong {
    color: #2c3e50;
}

.comment-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.comment-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.comment-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Search Results */
.search-results {
    padding: 30px 0;
}

.search-results h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.result-count {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Category Page */
.category-page {
    padding: 30px 0;
}

.category-page h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p i {
    margin-right: 8px;
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .complaint-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date {
        margin-left: 0;
    }
}
