/* Yapım Sayfası Özel Stilleri */

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.login-card h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.recent-orders {
    text-align: left;
}

.recent-orders h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item {
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e1e8f0;
}

.order-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Construction Section */
.construction-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info Panel */
.info-panel {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.progress-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

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

.control-buttons button {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #e1e8f0;
}

.speed-control label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

.speed-control select {
    padding: 5px 10px;
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    min-width: 80px;
}

.speed-control select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Images Panel */
.images-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.images-panel h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.image-box {
    background: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
}

.image-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.image-box h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: -10px -10px 15px -10px;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-box img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    background: white;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #f8fafc 25%, transparent 25%), 
                linear-gradient(-45deg, #f8fafc 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8fafc 75%), 
                linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Instructions Panel */
.instructions-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.current-step h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.from-nail, .to-nail {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #e1e8f0;
    color: #333;
    min-width: 60px;
    text-align: center;
    font-weight: 900;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.from-nail {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.to-nail {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.arrow {
    color: #667eea;
    font-size: 2rem;
    font-weight: bold;
}

.step-description {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* Next Steps */
.next-steps h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.steps-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.preview-step-num {
    background: #e1e8f0;
    color: #666;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tips Section */
.tips-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.tips-section li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* Animation Panel */
.animation-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.animation-panel h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.canvas-container {
    position: relative;
}

#animationCanvas {
    border: 2px solid #e1e8f0;
    border-radius: 15px;
    background: #fafbfc;
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 600px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#animationCanvas:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.nail-numbers-strip {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e1e8f0;
    display: block;
    width: 100%;
}

/* Canvas Wrapper */
.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.canvas-wrapper canvas {
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nail-sequence {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.nail-number {
    background: linear-gradient(135deg, #e1e8f0 0%, #f8f9fa 100%);
    color: #666;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    flex-grow: 0;
}

.nail-number.small {
    opacity: 0.7;
    transform: scale(0.9);
}

.nail-number.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 10px 15px;
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 2px solid white;
}

.step-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-counter {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-counter span:first-child {
    color: #667eea;
    font-weight: bold;
}

/* Animasyon Kontrolleri */
.animation-controls {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid #e1e8f0;
}

.step-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-control {
    padding: 8px 16px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-control:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.btn-control.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.btn-control.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-control.pause {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: transparent;
}

.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.goto-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.goto-step label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.goto-step input {
    width: 80px;
    padding: 6px 10px;
    border: 2px solid #e1e8f0;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.goto-step input:focus {
    outline: none;
    border-color: #667eea;
}

.speed-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1e8f0;
}

.speed-control label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.speed-control select {
    padding: 6px 12px;
    border: 2px solid #e1e8f0;
    border-radius: 6px;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
}

.speed-control select:focus {
    outline: none;
    border-color: #667eea;
}

/* Progress Panel */
.progress-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    background: #e1e8f0;
    border-radius: 25px;
    height: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 25px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: #666;
    font-weight: 600;
}

.session-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    
    .info-panel {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 25px;
        margin: 10px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    /* Ensure main content centers containers on mobile */
    .main-content {
        padding: 0 15px;
    }
    
    .control-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .speed-control {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .speed-control select {
        min-width: 100px;
    }
    
    .session-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .session-controls .btn-download,
    .session-controls .btn-secondary,
    .session-controls .btn-copy {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 200px;
        text-align: center;
    }
    
    .step-text {
        font-size: 1.2rem;
    }
    
    .from-nail, .to-nail {
        min-width: 50px;
        padding: 8px 12px;
    }
    
    /* Images responsive */
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile Container Standardization */
    .images-panel,
    .instructions-panel,
    .animation-panel,
    .progress-panel {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px auto;
        padding: 20px;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .images-panel {
        margin-bottom: 20px;
    }
    
    .image-box img,
    .image-placeholder {
        height: 200px;
    }
    
    /* Nail numbers strip responsive */
    .nail-numbers-strip {
        padding: 10px;
        margin-top: 10px;
    }
    
    .nail-sequence {
        gap: 3px;
        flex-wrap: nowrap;
        overflow: hidden;
        padding: 0 5px;
        height: 45px;
        justify-content: center;
    }
    
    .nail-number {
        padding: 3px 6px;
        font-size: 0.7rem;
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        flex-shrink: 0;
        flex-grow: 0;
        border-radius: 4px;
    }
    
    .nail-number.current {
        font-size: 0.9rem;
        font-weight: 800;
        padding: 6px 10px;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }
    
    .step-info {
        margin-top: 8px;
    }
    
    .step-counter {
        font-size: 0.8rem;
    }
    
    /* Canvas responsive */
    .canvas-wrapper {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .canvas-wrapper canvas {
        width: 100%;
        max-width: 350px;
        height: 350px;
        border-radius: 8px;
    }
    
    /* Animation controls mobile */
    .animation-controls {
        padding: 12px;
        margin-top: 10px;
    }
    
    .step-controls {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .btn-control {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .goto-step {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .goto-step input {
        width: 60px;
        padding: 4px 8px;
    }
    
    .speed-control {
        padding-top: 8px;
        border-top: 1px solid #e1e8f0;
    }
    
    .speed-control select {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.step-completed {
    animation: stepComplete 0.5s ease;
}

@keyframes stepComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #43e97b; }
    100% { transform: scale(1); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float .whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-float .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float {
        border-radius: 50%;
        padding: 15px;
    }
}