* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-container {
    width: 100%;
    max-width: 1400px;
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.preview-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.device-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Samsung Device Frame */
.samsung-device {
    perspective: 1000px;
}

.device-frame {
    width: 375px;
    height: 812px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px #2d2d2d,
        0 0 0 4px #1a1a1a;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.device-frame:hover {
    transform: scale(1);
}

/* Notch */
.device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.device-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.device-notch::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
}

/* Screen */
.device-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

#mobile-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Bottom Bar */
.device-bottom-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #2d2d2d;
    border-radius: 2px;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-frame {
        width: 320px;
        height: 693px;
        transform: scale(0.85);
    }
    
    .preview-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .device-frame {
        width: 280px;
        height: 600px;
        transform: scale(0.75);
    }
    
    .preview-header h1 {
        font-size: 1.5rem;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
