body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.app-container {
    background-color: #2e2e33;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

h1 {
    margin-top: 0;
    font-size: 24px;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #3a3a40;
    border-radius: 6px;
    background-color: #1a1a1d;
    color: white;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #4caf50;
}

select {
    padding: 12px;
    border: 2px solid #3a3a40;
    border-radius: 6px;
    background-color: #1a1a1d;
    color: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

button {
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.1s;
    box-sizing: border-box;
    width: 100%;
}

button:active {
    transform: scale(0.98);
}

.btn-search {
    background-color: #4caf50;
    color: white;
}

.btn-search:hover {
    background-color: #45a049;
}

.btn-download {
    background-color: #2196F3;
    color: white;
    margin-top: 10px;
    padding: 12px;
}

.btn-download:hover {
    background-color: #1976D2;
}

.canvas-container {
    margin: 20px auto;
    border-radius: 8px;
    background: repeating-conic-gradient(#3a3a40 0% 25%, #2e2e33 0% 50%) 50% / 20px 20px;
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

canvas {
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

.toggle-btn {
    background-color: #ff9800;
    color: white;
    font-size: 14px;
}

.toggle-btn:hover {
    background-color: #e68a00;
}

.error {
    color: #ff5252;
    font-size: 14px;
    margin-bottom: 10px;
    display: none;
}
