/* Inquiries Modal Styles */

.modal-inquiries {
    max-width: 1400px !important;
    width: 95% !important;
    margin: 2% auto !important;
    padding: 0 !important;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-inquiries h2 {
    padding: 1.5rem 2rem;
    margin: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-inquiries .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: white;
    opacity: 0.9;
    z-index: 1;
}

.modal-inquiries .close:hover {
    opacity: 1;
    color: white;
}

.inquiries-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: calc(90vh - 80px);
    overflow: hidden;
}

/* Left: Inquiry List */
.inquiry-list {
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
}

.inquiry-list-header {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.inquiry-list-body {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.inquiry-table {
    width: 100%;
    border-collapse: collapse;
}

.inquiry-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    font-size: 0.9rem;
    border-bottom: 2px solid #e5e7eb;
}

.inquiry-table tbody td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #4b5563;
}

.inquiry-table tbody tr {
    transition: background-color 0.2s ease;
}

.inquiry-table tbody tr:hover {
    background-color: #f0fdf4;
}

.inquiry-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Right: Inquiry Detail */
.inquiry-detail {
    background: white;
    overflow-y: auto;
    padding: 2rem;
}

.inquiry-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.inquiry-detail-header h3 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inquiry-date {
    color: #6b7280;
    font-size: 0.95rem;
}

.inquiry-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-group label i {
    color: #10b981;
    width: 20px;
}

.detail-value {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.detail-value a {
    color: #10b981;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.message-content {
    white-space: pre-wrap;
    line-height: 1.6;
    min-height: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .inquiries-container {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
    }
    
    .inquiry-list {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }
}

@media (max-width: 768px) {
    .modal-inquiries {
        width: 100% !important;
        height: 100vh;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-inquiries h2 {
        font-size: 1.2rem;
        padding: 1rem;
        border-radius: 0;
    }
    
    .inquiries-container {
        height: calc(100vh - 60px);
    }
    
    .inquiry-table thead th,
    .inquiry-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .inquiry-detail {
        padding: 1rem;
    }
}
