* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #6c6c6c;
    margin-bottom: 20px;
}

.app-container {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .app-container {
        flex-direction: row;
    }
}

.preview-section {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
}

.model-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.model-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.model-option:hover {
    transform: scale(1.1);
}

.model-option.active {
    border-color: #ff4d94;
}

.model-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-preview {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.face-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.makeup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.makeup-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.controls-section {
    flex: 1;
    padding: 20px;
    background: #fff;
}

.tutorial-steps {
    margin-bottom: 25px;
}

.step {
    display: none;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-title {
    font-size: 1.2rem;
    color: #ff4d94;
    margin-bottom: 10px;
}

.step-description {
    margin-bottom: 15px;
    line-height: 1.5;
}

.makeup-controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.makeup-option {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.makeup-option:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.makeup-option.active {
    background: #ff4d94;
    color: white;
}

.color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.2);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.2);
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: #ff4d94;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #ff2d87;
    transform: translateY(-2px);
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.prev-btn {
    background: #6c757d;
}

.prev-btn:hover {
    background: #5a6268;
}

.finish-btn {
    background: #28a745;
}

.finish-btn:hover {
    background: #218838;
}

.intensity-slider {
    margin: 15px 0;
    width: 100%;
}

.intensity-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upload-section {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4a4a4a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.feature-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #6c6c6c;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #ff4d94;
}