/* styles/modals/headingDetailsModal.css */

.heading-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out;
}

.heading-details-modal {
    background: white;
    width: 600px;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.heading-details-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  
}

.heading-details-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.heading-details-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.heading-details-close-btn:hover {
    color: #ef4444;
}

.heading-details-body {
    padding: 24px;
    overflow-y: auto;
}

.heading-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.heading-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.heading-detail-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.heading-detail-value {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    word-break: break-word;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Make specific fields span full width */
.heading-detail-item:nth-child(1),
/* Heading Name */
.heading-detail-item:nth-child(8),
/* Aliases */
.heading-detail-item:nth-child(9)

/* Definition */
    {
    grid-column: span 2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}
