* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Ctext x='20' y='60' font-family='Arial' font-size='50' fill='%23ffffff' opacity='0.05'%3E%E2%99%AA%3C/text%3E%3Ctext x='80' y='120' font-family='Arial' font-size='60' fill='%23ffffff' opacity='0.05'%3E%E2%99%AB%3C/text%3E%3C/svg%3E");
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.app-container {
    background-color: #121212;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(255,255,255,0.05);
    position: relative;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: #d32f2f;
}

.header-container {
    position: relative;
    margin-bottom: 12px;
}

.logo {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    background-color: transparent;
}

.section {
    margin-bottom: 12px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #b0b0b0;
}

.file-name-display {
    background-color: #2c2c2c;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 13px;
}

.controls-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.controls-row.centered {
    justify-content: center;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #d32f2f;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

.btn:hover {
    background-color: #b71c1c;
}

.btn:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.btn.full-width {
    width: 100%;
}

.toggle-btn.active {
    background-color: #ffffff;
    color: #d32f2f;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: monospace;
    font-size: 12px;
    color: #b0b0b0;
}

.seek-bar {
    flex: 1;
    margin-bottom: 0;
    cursor: pointer;
}

/* Loop Controls Layout */
.loop-container {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loop-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.loop-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.loop-time {
    font-size: 11px;
    margin-top: 6px;
    color: #808080;
    font-family: monospace;
}

/* Grid for Tools */
.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.tool-card {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #d32f2f;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Hamburger Menu */
.hamburger-btn {
    position: absolute;
    top: 0;
    left: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.menu-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 100;
    width: 160px;
    border: 1px solid #444;
}

.coffee-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}