/* Preview Shortcode Styles */
.preview-container {
    margin-bottom: 0.2rem;
}

.preview-trigger-link {
    display: inline-block;
    text-decoration: none;
    line-height: inherit;
}

.preview-trigger-link:hover {
    text-decoration: underline;
}

/* Secondary Icons (Expand or External) */
.preview-expand-icon,
.preview-link-icon {
    font-size: 0.8em;
    opacity: 0.5;
    margin-left: 4px;
    vertical-align: middle;
}

.pdf-icon-red { color: #C8060F; }
.image-icon-blue { color: #3b82f6; }

.preview-wrapper {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin: 5px 0 15px 0;
    background-color: #f9f9f9;
}

.preview-header {
    background: #eeeeee;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.preview-title {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-right: 15px;
}

.preview-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.preview-content {
    background: white;
    width: 100%;
    overflow: auto;
}

.preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.preview-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 10px;
}

/* Error Styling */
.preview-error {
    border: 2px dashed #C8060F;
    padding: 10px;
    margin: 10px 0;
    background: #fff5f5;
    color: #C8060F;
    font-size: 0.85em;
}

/* Buttons */
.preview-open-btn, .preview-close-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    gap: 5px;
    cursor: pointer;
    text-decoration: none !important;
}

/* default styling looks OK
.preview-open-btn { background: #C8060F; color: white !important; }
.preview-close-btn { background: #6c757d; color: white !important; border: none; }
*/

/* Google Workspace Colors */
.g-docs-blue {
    color: #4285F4; /* Google Docs Blue */
}

.g-sheets-green {
    color: #0F9D58; /* Google Sheets Green */
}

.g-drive-multicolor {
    color: #FFBB00; /* Google Drive Yellow (primary brand color) */
}

/* Ensure FontAwesome Brands (for Drive) align correctly */
.fab.fa-google-drive {
    margin-right: 4px;
    vertical-align: middle;
}
