/* Sikayetler Page Specific Styles */

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.stats-item {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}
.stats-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
}

.stats-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stats-item:hover .stats-icon {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.stats-content {
    flex: 1;
    text-align: left;
}

.stats-value {
    font-size: 42px;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    line-height: 1;
}
.stats-label {
    margin-top: 10px;
    font-size: 15px;
    color: #a0aec0;
    display: block;
}


/* Advanced Filter Bar */
.complaints-filter-bar {
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.filter-left { flex: 2 1 auto; min-width: 250px;}
.filter-center { flex: 3 1 auto; display: flex; justify-content: center; gap: 10px; flex-wrap: nowrap;}
.filter-right { flex: 1 1 auto; display: flex; justify-content: flex-end; gap: 10px; min-width: 250px;}

#complaintSearchInput, #sort-select {
    background: #1a1a2e;
    border: 1px solid #3b82f6;
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

#complaintSearchInput:focus, #sort-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    border-color: #60a5fa;
    outline: none;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #4a5568;
    background-color: transparent;
    color: #a0aec0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-btn:hover {
    background-color: #4a5568;
    color: white;
}
.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-write-complaint {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-write-complaint:hover {
    transform: scale(1.05);
}

/* Complaints List */
.complaints-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.complaint-card {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}
.complaint-card:hover {
    border-color: #3b82f6;
    transform: scale(1.01);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.company-logo {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    padding: 5px;
}
.company-info {
    display: flex;
    flex-direction: column;
}
.company-name {
    font-weight: bold;
    color: white;
    font-size: 16px;
}
.complaint-meta {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.card-body { 
    flex-grow: 1;
    min-width: 0;
}
.complaint-title {
    font-size: 17px;
    color: #eee;
    margin: 0 0 8px 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.complaint-summary {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.5;
    margin: 0;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.complaint-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 120px;
    text-align: center;
}
.resolved { background-color: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981;}
.pending { background-color: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b;}
.unanswered { background-color: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444;}
.btn-details {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.btn-details:hover {
    background: #2563eb;
}

.no-results-message {
    color: #a0aec0;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 12px;
}

/* Submit Complaint Section */
.submit-complaint-section {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.submit-complaint-section h2 {
    color: #3b82f6;
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.submit-complaint-section p {
    color: #a0aec0;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.complaint-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: #e5e7eb;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #1a1a2e;
    border: 1px solid #4a5568;
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

.faq-section h2 {
    color: #3b82f6;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #e5e7eb;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.1);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: #a0aec0;
    line-height: 1.6;
    margin: 0;
}

/* Company Logo */
.company-logo {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    transition: all 0.3s ease;
}

.company-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.company-logo-placeholder {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}
/* Response Styles */
.complaint-response {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #10b981;
    font-size: 14px;
}

.response-icon {
    flex-shrink: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.response-header:hover .response-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* --- RESPONSIVE --- */

@media (max-width: 1200px) {
    .complaints-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .filter-center {
        order: 2;
        justify-content: center;
    }
    .filter-left {
        order: 1;
    }
    .filter-right {
        order: 3;
        flex-direction: column;
        gap: 10px;
    }
    #sort-select, .btn-write-complaint {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .stats-panel {
        grid-template-columns: 1fr;
    }
    .stats-value { font-size: 36px; }
    .stats-label { font-size: 14px; }

    .filter-center {
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-btn {
        flex-grow: 1;
        font-size: 13px;
        padding: 8px 10px;
    }

    .complaint-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    .card-header {
        width: 100%;
    }
    .complaint-title {
        white-space: normal;
    }
    .card-footer {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .complaint-status {
        flex-grow: 1;
        min-width: 90px;
    }
    .btn-details {
        flex-grow: 1;
    }
}

/* Pagination */
.pagination-container {
    margin: 40px 0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 20px;
    color: #a0aec0;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 104, 0.3);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination-current {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: default;
}

.pagination-current:hover {
    transform: none;
}

.pagination-first,
.pagination-last {
    font-weight: 600;
    padding: 8px 16px;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
    padding: 8px 16px;
}

.pagination-dots {
    color: #6b7280;
    font-weight: bold;
    padding: 8px 4px;
    user-select: none;
}

/* Pagination Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .pagination-first,
    .pagination-last,
    .pagination-prev,
    .pagination-next {
        padding: 6px 12px;
    }
    
    .pagination-info {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin: 30px 0;
    }
    
    .pagination {
        gap: 2px;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .pagination-first,
    .pagination-last {
        display: none; /* İlk ve Son butonlarını gizle */
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 4px 10px;
    }
}
