
:root {
    /* Brand Colors */
    --color-primary: #D97732;
    --color-primary-hover: #E88A4A;

    /* Backgrounds */
    --bg-dark: #121212;
    --bg-medium: #1A1A1A;
    --bg-light: #2A2A2A;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #999999;

    /* Status Colors */
    --color-success: #4CAF50;
    --color-warning: #FFC107;
    --color-error: #F44336;

    /* Typography */
    --font-primary: 'Lato', sans-serif;
    --font-mono: 'Courier New', monospace;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 24px;
}

.beta-banner {
    background-color: #ffcc00;
    color: #333;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

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

.header {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-info h1 {
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 5px;
}

.header-info .profile-name {
    color: var(--text-muted);
    font-size: 14px;
}

.file-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mixer-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.mixer-selector label {
    color: var(--text-secondary);
    font-size: 14px;
}

.mixer-dropdown {
    background: var(--bg-medium);
    border: 1px solid var(--bg-light);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.mixer-dropdown:hover {
    border-color: var(--color-primary);
}

.mixer-dropdown:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-medium);
}

.btn-danger {
    background: var(--color-error);
    color: var(--text-primary);
}

.btn-danger:hover {
    background: #d32f2f;
}

.macro-panel {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-info {
    color: var(--text-muted);
    font-size: 14px;
}

.macro-grids-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 800px) {
    .macro-grids-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1300px) {
    .macro-grids-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1800px) {
    .macro-grids-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.macro-grid-wrapper {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #333;
}

.macro-grid-header {
    text-align: center;
    color: #d97740;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.macro-slot {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 15px;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.macro-slot:hover {
    border-color: #d97740;
    background: #252525;
}

.macro-slot.empty {
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.macro-slot.dragging {
    opacity: 0.5;
}

.macro-slot.drag-over {
    border-color: #d97740;
    background: #2a3a2a;
}

.macro-index {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #333;
    color: #888;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.macro-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 20px;
    color: #d97740;
}

.macro-description {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.macro-ops-count {
    font-size: 12px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #d97740;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #888;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: inherit;
}

.operations-list {
    margin-top: 20px;
}

.operation-item {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    transition: all 0.3s;
}

.operation-item:hover {
    background: #252525;
    border-color: #d97740;
}

.operation-item.dragging {
    opacity: 0.5;
}

.operation-item.drag-over {
    border-color: #d97740;
    background: #2a3a2a;
}

.operation-content {
    flex: 1;
}

.operation-title {
    font-size: 14px;
    font-weight: bold;
    color: #d97740;
    margin-bottom: 5px;
}

.operation-params {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.operation-param {
    display: inline-block;
    margin-right: 15px;
}

.operation-param-name {
    color: #666;
}

.operation-param-value {
    color: #d97740;
    font-weight: 500;
}

.operation-controls {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.drag-handle {
    color: #666;
    margin-right: 10px;
    cursor: move;
    font-size: 16px;
}

.drag-handle:hover {
    color: #d97740;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.add-operation {
    margin-top: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #444;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

input[type="file"] {
    display: none;
}

.snippet-selector {
    margin-bottom: 15px;
}

.snippet-selector select {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
}

.snippet-info {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.custom-op-input {
    font-family: 'Courier New', monospace;
    min-height: 60px;
}
