#wristband-designer-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.canvas-container {
    background: white;
    padding: 40px;
    text-align: center;
}

.wristband-canvas {
    width: 933.5px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    background: #f8f8f8;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.wristband-template {
    width: 933.5px;
    height: 72.5px;
    background: #32CD32;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

.design-area {
    position: absolute;
    left: 80px;
    top: 0;
    width: 600px;
    height: 72.5px;
    background: rgba(255,255,255,0.1);
    border: 1px dashed rgba(255,255,255,0.3);
}

.logo-placeholder, .logo-display {
    position: absolute;
    left: 85px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 63px;
}

.logo-placeholder {
    border: 2px dashed rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.logo-display {
    display: none;
    object-fit: contain;
}

.text-placeholder, .text-display {
    position: absolute;
    left: 205px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 63px;
}

.text-placeholder {
    border: 2px dashed rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.text-display {
    padding: 8px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #000;
    line-height: 1.3;
    overflow: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
    display: none;
}

.qr-placeholder, .qr-code-display {
    position: absolute;
    left: 600px;
    top: 50%;
    transform: translateY(-50%);
    width: 63px;
    height: 63px;
}

.qr-placeholder {
    border: 2px dashed rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.qr-code-display {
    border-radius: 4px;
    display: none;
    padding: 2px;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f0f0f0;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: #ccc;
    border-radius: 50px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.disabled:hover {
    transform: none;
}

.nav-btn.next {
    background: #007cba;
}

.steps-container {
    background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 100%);
    overflow: hidden;
}

.step-tabs {
    display: flex;
    background: rgba(255,255,255,0.1);
}

.step-tab {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    text-align: center;
}

.step-tab:hover {
    background: rgba(255,255,255,0.1);
}

.step-tab.active {
    background: rgba(255,255,255,0.2);
}

.step-content {
    padding: 30px;
    color: white;
    display: none;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    margin-bottom: 20px;
    color: #87ceeb;
}

.color-note {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    max-width: 600px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-swatch:hover,
.color-swatch.selected {
    border-color: white;
    transform: scale(1.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #87ceeb;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #87ceeb;
    background: rgba(255,255,255,0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.text-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.font-size-input {
    width: 60px;
}

.style-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.style-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 40px;
}

.style-btn:hover {
    background: rgba(255,255,255,0.2);
}

.style-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: #87ceeb;
}

.btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.upload-area {
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
}

.upload-area.dragover {
    border-color: #87ceeb;
    background: rgba(135,206,235,0.1);
}

.file-input {
    display: none;
}

.logo-preview {
    max-width: 200px;
    max-height: 100px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    margin: 15px 0;
    background: rgba(255,255,255,0.1);
    padding: 10px;
}

.order-section {
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.order-section h3 {
    margin-bottom: 20px;
    color: #87ceeb;
}

.order-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
}

.order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pricing-note {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #87ceeb;
    font-weight: bold;
}

.price-breakdown {
    background: #34495e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #475569;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.total-price {
    font-size: 1.2em;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #3498db;
    border-bottom: none;
}

.price {
    color: #2ecc71;
    font-weight: bold;
}

.design-details {
    margin-bottom: 20px;
    padding: 15px;
    background: #34495e;
    border-radius: 8px;
}

.design-details h4 {
    margin-bottom: 10px;
    color: #87ceeb;
}

.design-details p {
    margin-bottom: 5px;
}

.order-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.order-message.success {
    background: #2ecc71;
    color: white;
}

.order-message.error {
    background: #e74c3c;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wristband-canvas {
        width: 100%;
        max-width: 933.5px;
        transform: scale(0.8);
        transform-origin: center;
    }
    
    .text-controls {
        grid-template-columns: 1fr;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    }
    
    .step-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .wristband-canvas {
        transform: scale(0.6);
    }
    
    .step-tabs {
        flex-direction: column;
    }
    
    .step-tab {
        padding: 12px 15px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .canvas-container {
        padding: 20px;
    }
    
    .price-breakdown {
        padding: 15px;
    }
    
    .price-item {
        font-size: 14px;
    }
    
    .design-details {
        padding: 10px;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .style-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wristband-canvas {
        transform: scale(0.5);
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    }
    
    .color-swatch {
        width: 30px;
        height: 30px;
    }
    
    .upload-area {
        padding: 20px 10px;
    }
    
    .step-content {
        padding: 15px;
    }
}

/* WordPress Admin Styles */
.wrap .card {
    padding: 20px;
    margin-top: 20px;
}

.wp-list-table td input[type="text"],
.wp-list-table td input[type="number"],
.wp-list-table td input[type="color"] {
    width: 100%;
    max-width: 150px;
}

.wp-list-table td input[type="color"] {
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wp-list-table td input[type="checkbox"] {
    transform: scale(1.2);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Print Styles */
@media print {
    #wristband-designer-container * {
        visibility: hidden;
    }
    
    .wristband-canvas,
    .wristband-canvas * {
        visibility: visible;
    }
    
    .wristband-canvas {
        position: absolute;
        left: 0;
        top: 0;
        transform: none;
    }
}