* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f3f4f6;
    color: #111827;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    height: 60px;

    display: flex;
    align-items: center;

    padding: 0 16px;

    background: #111827;
    color: white;

    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    margin: 0 0 0 12px;
    font-size: 20px;
}

main {
    flex: 1;
    padding: 16px;
    padding-bottom: 90px;
}

.view {
    width: 100%;
}

.hidden {
    display: none !important;
}


/* Buttons */

button {
    border: none;
    border-radius: 10px;

    padding: 12px 16px;

    font-size: 16px;

    cursor: pointer;

    background: #e5e7eb;
    color: #111827;
}

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

.icon-button {
    padding: 6px 10px;
    background: transparent;
    color: white;
    font-size: 28px;
}

.primary-button {
    width: 100%;

    background: #2563eb;
    color: white;

    margin-top: 20px;
}


/* Listen */

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

.list-item {
    background: white;

    border-radius: 12px;

    padding: 16px;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08);

    cursor: pointer;
}

.list-item:active {
    background: #f9fafb;
}

.list-item-title {
    font-size: 18px;
    font-weight: 600;
}

.list-item-subtitle {
    margin-top: 5px;

    font-size: 14px;
    color: #6b7280;
}


/* Einstellungen */

label {
    display: block;

    margin-top: 16px;
    margin-bottom: 6px;

    font-weight: 600;
}

input {
    width: 100%;

    padding: 13px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    font-size: 16px;

    background: white;
}


/* Informationen */

.info-card {
    background: white;

    padding: 16px;

    border-radius: 12px;

    margin-bottom: 16px;
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
}


/* Tanzfläche */

.dance-floor-container {
    width: 100%;

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08);

    aspect-ratio: 1 / 1;
}

#danceFloor {
    display: block;

    width: 100%;
    height: 100%;
}


/* Navigation */

.figure-navigation {
    display: flex;

    gap: 10px;

    margin-top: 16px;
}

.figure-navigation button {
    flex: 1;
}


/* Bottom navigation */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    height: 70px;

    display: flex;

    background: white;

    border-top: 1px solid #e5e7eb;

    z-index: 20;
}

.bottom-nav button {
    flex: 1;

    border-radius: 0;

    background: white;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    font-size: 13px;
}

.bottom-nav button:first-line {
    font-size: 20px;
}


/* Status */

.loading {
    padding: 30px 10px;

    text-align: center;

    color: #6b7280;
}

.error {
    padding: 16px;

    border-radius: 10px;

    background: #fee2e2;
    color: #991b1b;
}