:root {
    --primary: #000000;
    --secondary: #FFFFFF;
    --accent: #000000;
    --text-light: #000000;
    --text-dark: #FFFFFF;
    --border-color: #CCCCCC;
    --hover-color: #F5F5F5;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(208, 208, 208, 0.8)), url('/assets/images/cross-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-light);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #000000 !important;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 500;
}

input,
select,
textarea,
button {
    border: 1px solid #000000 !important;
    border-radius: 6px;
    padding: 12px;
    background-color: var(--secondary);
    color: var(--text-light);
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000000 !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    transition: all 0.3s ease;
}

button {
    background-color: var(--secondary);
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
}

button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.search-box {
    margin-bottom: 25px;
    width: 100%;
}

.search-box input {
    width: 100%;
}

.tab-content {
    font-family: 'Courier New', monospace;
    background-color: var(--secondary);
    padding: 20px;
    border: 1px solid #000000 !important;
    border-radius: 6px;
    color: var(--text-light);
    margin: 15px 0;
    width: 100%;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

textarea.tab-content {
    white-space: pre-wrap;
    min-height: 200px;
    resize: vertical;
}

.tab-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.tab-item {
    padding: 15px;
    border: 1px solid #000000;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    width: 100%;
    background-color: var(--secondary);
}

.tab-item:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9em;
}

.tab-meta p {
    margin: 0;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab-meta p::before {
    font-weight: normal;
    opacity: 0.7;
}

.artist { 
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}
.artist::before { content: "Artist:"; }

.author { 
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}
.author::before { content: "Author:"; }

.key { 
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}
.key::before { content: "Key:"; }

.leader { 
    background: rgba(233, 30, 99, 0.1);
    color: #E91E63;
}
.leader::before { content: "Leader:"; }

.category { 
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}
.category::before { content: "Category:"; }

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.schedule-item {
    background-color: var(--secondary);
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.schedule-item .song-info {
    flex: 1;
}

.schedule-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.order-number {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #FF0000;
    color: #FF0000;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    width: 100%;
}

.success-message {
    background-color: rgba(0, 128, 0, 0.1);
    border: 1px solid #008000;
    color: #008000;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    width: 100%;
}

.quick-search-container {
    margin-bottom: 20px;
    position: relative;
}

.quick-search-form .search-group {
    display: flex;
    gap: 10px;
}

.quick-search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.search-result-item .song-info {
    flex: 1;
    min-width: 0;
}

.search-result-item .song-title {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.search-result-item .tab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85em;
}

.search-result-item .tab-meta p {
    margin: 0;
    padding: 2px 8px;
    border-radius: 12px;
}

.search-result-item .add-to-schedule-form {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.add-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    opacity: 0.7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.add-button:hover {
    opacity: 1;
    color: #4CAF50;
    transform: scale(1.1);
}

.title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-row h3 {
    margin: 0;
    flex: 1;
}

.title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-only-link, .delete-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    opacity: 0.7;
    transition: all 0.2s;
}

.view-only-link:hover {
    opacity: 1;
    color: #2196F3;
}

.delete-button {
    background: none;
    border: none !important;
    padding: 0;
    cursor: pointer;
    min-width: auto;
}

.delete-button:hover {
    opacity: 1;
    color: #dc3545;
    background: none;
    transform: scale(1.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

.footer a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer a:hover {
    color: #1976D2;
}

/* Navigation styles */
.nav {
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #000000 !important;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0;
}

.nav-item a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: var(--primary);
    text-decoration: none;
}

.nav-item a:hover {
    background-color: var(--hover-color);
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        justify-content: center;
    }
}
