/* Template Selection */
.preview-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-card.border-primary {
    border-color: #007bff !important;
}

.template-preview {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Position Markers */
.position-marker {
    position: absolute;
    width: 80px;
    height: 40px;
    border: 2px solid;
    border-radius: 6px;
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 1000;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center;
    pointer-events: auto;
}

.position-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.position-marker.dragging {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0.8;
}

.position-marker i {
    font-size: 1.2em;
    margin-bottom: 2px;
}

.position-marker span {
    font-size: 0.8em;
    white-space: nowrap;
}

.position-marker.name-marker {
    background-color: rgba(40, 167, 69, 0.9);
    border-color: #28a745;
}

.position-marker.qr-marker {
    background-color: rgba(220, 53, 69, 0.9);
    border-color: #dc3545;
}

/* Template Container */
.template-container {
    margin: 20px auto;
    max-width: 100%;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.template-wrapper {
    display: inline-block;
    position: relative;
}

.template-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0;
}

/* Upload Zone */
#uploadZone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

#uploadZone.dragover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

#uploadProgress {
    margin-top: 10px;
}

/* Alerts */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Steps */
.list-group-item {
    cursor: default;
}

.list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}

/* Invitees Table */
.invitees-table {
    margin-top: 20px;
}

.invitees-table th {
    background-color: #f8f9fa;
}

/* Generated Cards */
.generated-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-preview {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-preview img {
    width: 100%;
    height: auto;
}

.card-preview .card-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Preview Cards */
.preview-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-card.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* Progress */
.progress {
    height: 10px;
    margin-top: 10px;
}

/* Instructions */
.instructions-card {
    margin-bottom: 1.5rem;
}

.instructions-card .card-header {
    padding: 0.75rem 1rem;
}

.instructions-card .card-body {
    padding: 1rem;
}

.instructions-card ol {
    padding-left: 1rem;
    margin-bottom: 0;
}

.instructions-card ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

/* Position Display */
.position-display {
    font-size: 0.9rem;
    color: #6c757d;
}

.position-display strong {
    color: #495057;
}
