:root {
    --primary-color: #007BFF;
    --secondary-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #343a40;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --status-verified: #28a745;
    --status-inaccurate: #dc3545;
    --status-pending: #ffc107;
    --status-review: #007BFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--card-background);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header-button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
}

.view-nav {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 1rem;
    background-color: var(--card-background);
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.view-nav button {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 0.5rem;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    border-radius: 0;
    min-width: unset;
}

.view-nav button.active {
    color: var(--primary-color);
}

.view-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#app-container {
    flex-grow: 1;
    padding: 1rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-size: 0.8rem;
    position: relative;
}

.footer-main .app-name {
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0.25rem;
}

.version-badge {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e6e6e6;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #666;
    box-shadow: var(--shadow);
}

/* General Buttons */
button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, opacity 0.2s;
    min-width: 100px;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

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

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="file"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Archive List Styling */
.archive-container {
    padding: 1rem 0;
}

.archive-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.lyric-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    cursor: pointer;
}

.lyric-card-cover {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.lyric-card-info {
    padding: 1rem;
    flex-grow: 1;
    position: relative;
}

.lyric-card-info h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.status-verified {
    background-color: var(--status-verified);
    color: white;
}

.status-inaccurate {
    background-color: var(--status-inaccurate);
    color: white;
}

.status-pending, .status-review {
    background-color: var(--status-pending);
    color: var(--text-color);
}

.lyric-detail {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.detail-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    line-height: 1.6;
}

.lyric-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-controls {
    margin-bottom: 1rem;
}

/* Developer View Specific */
.dev-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Important for mobile layout */
}

.dev-controls button {
    flex-grow: 1;
}

.review-item {
    padding: 1rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--card-background);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-cover {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.review-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* Utility classes for icons/symbols */

.icon-verified::before {
    content: "✓ "; 
}

.icon-warning::before {
    content: "⚠ "; 
}

.icon-info::before {
    content: "ⓘ "; 
}