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

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}

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

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
    overflow-y: auto;
}

.bottom-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #333;
    color: white;
    position: sticky;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.panel-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.record-button {
    width: 80px;
    height: 80px;
    background-color: red;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    font-size: 28px;
    color: white;
}

.record-button:active,
.record-button.recording {
    transform: scale(1.3);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
}

#cancelZone {
    display: flex; /* <-- to najważniejsze! */
    width: 80px;
    height: 80px;
    background-color: black;
    color: white;
    font-size: 28px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0;           /* domyślnie niewidoczne */
    visibility: hidden;   /* i ukryte */
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.right-placeholder {
    width: 60px;
    height: 60px;
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .bottom-panel {
        padding: 15px;
    }

    .record-button {
        width: 70px;
        height: 70px;
    }

    #cancelZone {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .right-placeholder {
        width: 70px;
        height: 70px;
    }
}
