/* Certificate Template Management Styles */
.template-list {
    margin-top: 20px;
}

.template-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.template-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.template-preview {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.template-preview img {
    max-width: 100%;
    height: auto;
}

.template-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.template-status {
    margin-bottom: 10px;
}

.template-status .badge {
    font-size: 0.9em;
    padding: 5px 10px;
}

/* Certificate Editor Styles */
.certificate-editor {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.certificate-canvas {
    background: #fff;
    border: 1px solid #ddd;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.certificate-element {
    position: absolute;
    cursor: move;
    padding: 5px;
    border: 1px dashed transparent;
}

.certificate-element:hover {
    border-color: #007bff;
}

.certificate-element.selected {
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.element-controls {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.element-controls .form-group {
    margin-bottom: 15px;
}

/* Preview Mode Styles */
.preview-mode .certificate-element {
    border: none;
    cursor: default;
}

.preview-mode .certificate-element:hover {
    border: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificate-canvas {
        transform: scale(0.8);
        transform-origin: top center;
    }
    
    .element-controls {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
} 