/* ========================================
   Phan Anh Detail Page Styles
   Created: 2026-01-14
   Purpose: Custom styles for citizen complaint detail page
   ======================================== */

/* Modern Card Design */
.detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .detail-card:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

.detail-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: #fff;
}

    .detail-card-header h4 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
    }

.detail-card-body {
    padding: 28px;
}

/* Gallery Modern Design */
.gallery-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

#ProductGallery {
    border-radius: 12px;
    overflow: visible;
    width: 100%;
}

    #ProductGallery li {
        list-style: none;
    }

    #ProductGallery li img {
        border-radius: 8px;
        width: 100%;
        height: auto;
        display: block;
    }

    #ProductGallery .lSSlideOuter {
        border-radius: 12px;
        overflow: hidden;
    }

    #ProductGallery .lSSlideOuter .lSPager.lSpg {
        margin-top: 15px;
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    #ProductGallery .lSSlideOuter .lSPager.lSpg > li {
        width: 70px !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center;
        justify-content: center;
        line-height: 0;
        box-sizing: border-box !important;
        flex-shrink: 0;
    }

    #ProductGallery .lSSlideOuter .lSPager.lSpg > li:hover {
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

    #ProductGallery .lSSlideOuter .lSPager.lSpg > li.active {
        border-color: #007bff;
        border-width: 3px;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    }

    #ProductGallery .lSSlideOuter .lSPager.lSpg > li a {
        width: 70px !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0;
        overflow: hidden;
        box-sizing: border-box !important;
    }

    #ProductGallery .lSSlideOuter .lSPager.lSpg > li img {
        width: 70px !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        object-fit: cover !important;
        display: block !important;
        vertical-align: top;
        flex-shrink: 0;
    }

    #ProductGallery .lSSlideOuter .lightSlider {
        border-radius: 8px;
    }

    #ProductGallery .khungAnh,
    #ProductGallery .videoinner {
        width: 100%;
        height: auto;
    }

    #ProductGallery .khungAnh img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* Info Section */
.info-section {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

    .info-item:hover {
        background: #e9ecef;
        transform: translateX(4px);
    }

    .info-item i {
        margin-right: 10px;
        font-size: 1.1rem;
        color: #007bff;
        min-width: 22px;
    }

    .info-item .fa-comment-dots {
        margin-left: 10px;
        margin-right: 2px;
    }

    .info-item strong {
        color: #2d3748;
        margin-right: 6px;
        font-size: 0.95rem;
    }

    .info-item span, .info-item a {
        color: #4a5568;
        font-size: 0.95rem;
    }

/* Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 6px;
}

    .status-badge.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .status-badge.processing {
        background: #dbeafe;
        color: #1e40af;
    }

    .status-badge.completed {
        background: #d1fae5;
        color: #065f46;
    }

/* Content Box */
.content-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 16px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 4px solid #007bff;
}

    .content-box p {
        margin: 0;
        color: #2d3748;
        line-height: 1.6;
        font-size: 0.95rem;
    }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: #fff !important;
    text-decoration: none;
}

    .btn-modern-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        color: #fff !important;
        text-decoration: none;
    }

    .btn-modern-primary:focus,
    .btn-modern-primary:active,
    .btn-modern-primary:visited {
        color: #fff !important;
        text-decoration: none;
    }

.btn-modern-danger {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: #fff !important;
    text-decoration: none;
}

    .btn-modern-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
        color: #fff !important;
        text-decoration: none;
    }

    .btn-modern-danger:focus,
    .btn-modern-danger:active,
    .btn-modern-danger:visited {
        color: #fff !important;
        text-decoration: none;
    }

/* Rating Section */
.rating-section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.rating-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 120px;
    padding: 14px 10px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

    .rating-option.danhgia_hailong {
        background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
        color: #065f46;
    }

    .rating-option.danhgia_chapnhan {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        color: #1e40af;
    }

    .rating-option.danhgia_khonghailong {
        background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
        color: #92400e;
    }

    .rating-option:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .rating-option.choosen {
        border: 2px solid #007bff;
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    }

    .rating-option.unchoosen {
        opacity: 0.5;
    }

    .rating-option a {
        font-weight: 600;
        color: inherit;
        text-decoration: none;
    }

/* Attach Items */
.attach-item {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .attach-item:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border-color: #007bff;
    }

    .attach-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.attach-icon {
    font-size: 48px;
    color: #ef4444;
}

.attach-icon-word {
    font-size: 48px;
    color: #3b82f6;
}

.file-cover {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* History Process Button */
.btn-history-process {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

    .btn-history-process:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
        color: #fff;
    }

    .btn-history-process i {
        margin-right: 8px;
        transition: transform 0.3s ease;
    }

    .btn-history-process:hover i {
        transform: rotate(360deg);
    }

/* Result Card */
.result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 32px;
}

.result-card-header {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    padding: 20px 24px;
    color: #fff;
}

    .result-card-header h5 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
    }

.result-card-body {
    padding: 28px;
}

/* Social Buttons */
#social-ttcd {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

    #social-ttcd a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: #fff;
        color: #4a5568;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 2px solid #e2e8f0;
        width: fit-content;
        white-space: nowrap;
    }

        #social-ttcd a:hover {
            background: #007bff;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        }

/* Comment Section */
.tuong-tac-ct {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin: 24px 0;
}

.comment_item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

    .comment_item:hover {
        background: #e9ecef;
        transform: translateX(4px);
    }

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

    .page-title h4 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .page-title h4 {
        font-size: 1.2rem;
    }

    .detail-card-body {
        padding: 16px;
    }

    .info-section {
        padding: 16px;
    }

    .info-item {
        margin-bottom: 10px;
        padding: 8px;
    }

    .gallery-container {
        margin-bottom: 20px;
    }

    .rating-option {
        min-width: 100%;
        font-size: 0.85rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}
