* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.emulator-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.android-emulator {
    background: #222;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    flex: 1;
    min-width: 300px;
}

.status-bar {
    height: 40px;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.status-icons span {
    margin-left: 15px;
}

.screen-container {
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 500px;
}

#screen {
    width: 800px;
    height: 600px;
    background: #111;
    border: 2px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #667eea;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.progress-bar {
    width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
}

.controls {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 15px;
    background: #1a1a1a;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.info-panel {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.info-panel h2, .info-panel h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.info-panel ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.info-panel li {
    margin-bottom: 10px;
}

.status-info div, .controls-info p {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .emulator-container {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    #screen {
        width: 100%;
        height: 400px;
    }
}