﻿/* Presentation Preview Widget - Inline Concise Styles */

.presentation-preview-inline {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    min-width: 300px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ppt-inline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(102, 126, 234, 0.2);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.ppt-inline-header i {
    color: #ffd700;
    font-size: 16px;
}

.ppt-inline-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ppt-inline-info {
    padding: 12px 14px;
}

.ppt-inline-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-all;
}

.ppt-inline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ppt-inline-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.ppt-btn-download, .ppt-btn-open {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.ppt-btn-download {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.ppt-btn-download:hover {
    background: linear-gradient(135deg, #7b8eef, #8a5db5);
    transform: translateY(-1px);
}

.ppt-btn-open {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ppt-btn-open:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.ppt-inline-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.1);
}

.ppt-inline-status.success {
    color: #4caf50;
}

.ppt-inline-status.error {
    color: #f44336;
}

.ppt-inline-status.loading {
    color: #2196f3;
}

.ppt-inline-status i {
    font-size: 12px;
}

/* Template Selection View */
.ppt-template-selection {
    padding: 5px 0;
    width: 100%;
}

.ppt-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 5px;
}

.ppt-template-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.ppt-template-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.ppt-template-card.recommended {
    border-color: var(--primary);
    background: rgba(64, 224, 208, 0.1);
}

.ppt-template-preview {
    height: 50px;
    position: relative;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ppt-template-mock-title {
    width: 60%;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.ppt-template-mock-body {
    width: 90%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.ppt-template-info-text {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ppt-template-name {
    font-weight: 600;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppt-badge {
    background: var(--primary);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}
