/* Template Documentation Styling */
.template-basis-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-basis-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.template-basis-content {
    background: #222;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.template-basis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #333;
    border-bottom: 1px solid #444;
}

.template-basis-header h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.template-basis-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.template-basis-close:hover {
    color: #fff;
}

.template-basis-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: #eee;
}

.template-basis-field-info {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.template-basis-field-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00dbff;
    font-size: 16px;
}

.template-basis-field-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-label {
    font-weight: bold;
    color: #aaa;
}

.field-value {
    word-break: break-word;
}

.field-type-label {
    display: inline-block;
    background: #444;
    color: #aaa;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.template-basis-sources-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00dbff;
    font-size: 16px;
}

.template-basis-item {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.template-basis-source {
    font-weight: bold;
    color: #00dbff;
    margin-bottom: 10px;
}

.template-basis-text {
    margin-bottom: 15px;
    line-height: 1.5;
}

.template-basis-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.template-basis-image-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: calc(33.33% - 7px);
}

.template-basis-image {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.template-basis-image:hover {
    transform: scale(1.02);
}

.template-basis-image-desc {
    font-size: 12px;
    color: #aaa;
}

.replacement-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.replacement-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.replacement-table th, 
.replacement-table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: left;
}

.replacement-table th {
    background-color: #333;
    color: #eee;
}

.replacement-table tr:nth-child(even) {
    background-color: #2d2d2d;
}

@media (max-width: 768px) {
    .template-basis-content {
        width: 95%;
    }
    
    .template-basis-image-container {
        width: calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .template-basis-image-container {
        width: 100%;
    }
} 