/* ===== GLOBALE STILE ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #fff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== HEADER STILE ===== */
.header-menu {
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-logo img {
    height: 40px;
    max-width: 150px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.header-nav li {
    margin: 0 10px;
}

.header-nav li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.header-nav li a.active,
.header-nav li a:hover {
    background-color: var(--secondary-color);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-button {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid var(--text-light);
    border-radius: 4px;
    transition: all 0.3s;
}

.logout-button:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* ===== LOGIN-SEITE STILE ===== */
.login-container {
    background: #507793!important;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 1.5rem;
}

.login-container
{
	color:white!important;
}

.login-logo img {
    height: 60px;
    max-width: 200px;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
	color:black;
}

#login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
	color:white;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1a252f;
}

.error-message {
    color: var(--danger-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

.content {
    padding: 20px;
    width: 100%;
}

/* ===== BAND-VERWALTUNG ===== */
.section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.section h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.band-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.band-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.band-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.band-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.band-card p {
    margin-bottom: 5px;
    color: #666;
}

.band-avatar {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    margin-bottom: 10px;
}

.band-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.band-actions button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

#delete-band-btn
{
	background:none;
	color:red;
	font-size:8px;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

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

.delete:hover {
    background-color: #c0392b;
}

/* ===== BENUTZERSUCHE ===== */
.user-search-result {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #f9f9f9;
}

.user-search-result button {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

/* ===== CREW/ARTIST-LISTEN ===== */
#crew-list, #artist-list {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.crew-member, .artist {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.crew-member:last-child, .artist:last-child {
    border-bottom: none;
}

/* ===== RESPONSIVE ANPASSUNGEN ===== */
@media (max-width: 768px) {
    .band-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .header-menu {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .header-nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-nav li {
        margin: 5px;
    }

    .header-user {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .band-actions {
        flex-direction: column;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #34495e;
        --secondary-color: #2980b9;
        --light-color: #34495e;
        --text-color: #ecf0f1;
        --text-light: #ecf0f1;
    }

    body {
        background-color: #2c3e50;
    }

    .section, .band-card, .modal-content, .login-container {
        background-color: #34495e;
        color: #ecf0f1;
        border-color: #2c3e50;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #2c3e50;
        color: #ecf0f1;
        border-color: #34495e;
    }
}

/* ===== LOGIN-SPECIFIC STYLES ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}