@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.photo-text-wrapper {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.gradient-text {
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-text {
    color: rgba(255, 255, 255, 0.9);
}

.badge-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.controls-sticky {
    position: sticky;
    top: 20px;
}

.control-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.control-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.control-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.control-header h5 {
    margin: 0;
    font-weight: 800;
    color: #1a1a1a;
}

.drop-zone {
    border: 3px dashed #e0e0e0;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    border-color: #667eea;
    background: #f5f7ff;
    transform: translateY(-4px);
}

.drop-zone.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
    border-style: solid;
}

.drop-zone-content i {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.drop-zone-content h6 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.drop-zone-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-upload {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.image-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}

.form-label-custom {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom,
.form-select-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-custom:focus,
.form-select-custom:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-color-custom {
    width: 100%;
    height: 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control-color-custom:hover {
    border-color: #667eea;
}

.form-check-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.style-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.btn-style {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
}

.btn-check:checked+.btn-style {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-style:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.form-range-custom {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range-custom::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.helper-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline-custom {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: #667eea;
    color: #667eea;
}

.preview-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.preview-indicators {
    display: flex;
    gap: 0.5rem;
}

.preview-body {
    padding: 2rem;
}

.preview-container {
    background: #f9fafb;
    border-radius: 16px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e5e7eb;
    overflow: hidden;
}

.preview-placeholder {
    text-align: center;
    padding: 3rem 2rem;
}

.placeholder-icon {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.preview-placeholder h4 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.preview-placeholder p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.quick-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.5rem;
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.templates-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.templates-header {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.template-btn {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.template-btn i {
    font-size: 2rem;
    color: #667eea;
}

.template-btn span {
    font-weight: 600;
    color: #374151;
}

.template-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

@media (max-width: 992px) {
    .controls-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}