﻿/* TemplateUtils - Global Styles */

.template-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

    .template-wrapper * {
        box-sizing: border-box;
    }

.template-container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    border: none;
    margin: 0;
}

.template-content {
    padding: 20px;
}

.template-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .template-section-title::before {
        content: '';
        width: 4px;
        height: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

.template-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.template-field {
    background: #f7fafc;
    border-radius: 6px;
    padding: 10px 14px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .template-field:hover {
        background: #edf2f7;
        transform: translateX(2px);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
    }

.template-field-name {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    min-width: 120px;
    flex-shrink: 0;
}

.template-field-value {
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

    .template-field-value.empty {
        color: #a0aec0;
        font-style: italic;
    }

/* Custom field classes */
.template-field.highlight {
    border-left-color: #48bb78;
    background: #f0fff4;
}

.template-field.warning {
    border-left-color: #ed8936;
    background: #fffaf0;
}

.template-field.error {
    border-left-color: #f56565;
    background: #fff5f5;
}

.template-field.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .template-content {
        padding: 15px;
    }

    .template-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .template-field-name {
        min-width: 100px;
    }
}
