/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --success-color: #10B981;
    --success-hover: #059669;
    --danger-color: #EF4444;
    --danger-hover: #DC2626;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 60px; /* Footer için boşluk */
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    text-align: center;
}

.logo {
    max-width: 240px;
    height: auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-title i {
    color: var(--primary-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.modern-input:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.modern-input.is-invalid {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.modern-input.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Error Message */
.error-message {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    border-radius: 8px;
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    position: fixed;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.footer-text {
    text-align: center;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 576px) {
    .footer {
        padding: 0.75rem 0;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

/* Buttons */
.btn-modern {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-transform: none;
}

.btn-primary.btn-modern {
    background: var(--primary-color);
    color: white;
}

.btn-primary.btn-modern:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-success.btn-modern {
    background: var(--success-color);
    color: white;
}

.btn-success.btn-modern:hover:not(:disabled) {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Selected Info */
.selected-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.info-item i {
    font-size: 1.1rem;
}

/* Lamp Type Buttons */
.lamp-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lamp-btn {
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.lamp-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.lamp-btn img.lamp-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

.lamp-btn:hover img.lamp-icon {
    transform: scale(1.1);
}

.lamp-btn span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.lamp-btn.stop-btn i {
    color: var(--danger-color);
}

.lamp-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.lamp-btn.stop-btn:hover {
    border-color: var(--danger-color);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.lamp-btn.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

.lamp-btn.stop-btn.active {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

/* Side Selection */
.side-selection {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.side-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.side-buttons {
    display: grid;
    gap: 0.75rem;
}

.side-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.side-btn i {
    font-size: 1.25rem;
}

.side-btn:hover {
    border-color: var(--success-color);
    transform: translateX(4px);
}

.side-btn.active {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: scale(1.02);
}

.side-btn.both-btn:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 576px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .step-label {
        display: none;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .lamp-type-buttons {
        grid-template-columns: 1fr;
    }

    .lamp-btn {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 400px) {
    .form-container {
        padding: 1.25rem;
    }

    .progress-steps {
        margin-bottom: 1.5rem;
    }
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation Message */
.confirmation-message {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 5rem;
    color: var(--success-color);
    animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.confirmation-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Search Animation */
.search-animation {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.magnifier {
    position: relative;
    animation: magnifierMove 3s ease-in-out infinite;
}

.magnifier i {
    font-size: 4rem;
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
}

@keyframes magnifierMove {
    0%, 100% {
        transform: translateX(-20px) translateY(0) rotate(-15deg);
    }
    25% {
        transform: translateX(20px) translateY(-10px) rotate(15deg);
    }
    50% {
        transform: translateX(20px) translateY(10px) rotate(-10deg);
    }
    75% {
        transform: translateX(-20px) translateY(10px) rotate(10deg);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Additional Info Form */
.additional-info-form {
    animation: fadeIn 0.4s ease-out;
}

.form-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Custom File Upload */
.custom-file-upload {
    position: relative;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-dark);
}

.file-label:hover {
    border-color: var(--primary-color);
    background: white;
}

.file-label i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Image Preview */
.image-preview {
    position: relative;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-image:hover {
    background: var(--danger-hover);
    transform: scale(1.1);
}

.remove-image i {
    font-size: 0.875rem;
}

