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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.nav-link {
    padding: 10px 15px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #333;
}

.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

ul {
    list-style: none;
}

li {
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

li:hover {
    background: #efefef;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

/* Band and Member Cards */
.band-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.band-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.band-header h3 {
    margin: 0;
    color: #333;
}
.band-actions {
    display: flex;
    gap: 8px;
}
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-edit {
    background: #667eea;
    color: white;
}
.btn-edit:hover {
    background: #5568d3;
}
.btn-delete {
    background: #ff6b6b;
    color: white;
}
.btn-delete:hover {
    background: #ff5252;
}
.members-list {
    background: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fafafa;
    border-left: 3px solid #667eea;
    margin-bottom: 8px;
    border-radius: 4px;
}
.member-info {
    flex: 1;
}
.member-name {
    font-weight: 600;
    color: #333;
}
.member-email {
    font-size: 0.9rem;
    color: #666;
}
.member-actions {
    display: flex;
    gap: 6px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.modal-header {
    margin-bottom: 20px;
}
.modal-header h2 {
    margin: 0;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: #667eea;
}
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.form-actions button {
    flex: 1;
}
.no-members {
    padding: 12px;
    color: #666;
    font-style: italic;
}

/* Utilities */
.container-small {
    max-width: 500px;
    margin: 60px auto;
}
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert-danger {
    background-color: #ffe8e8;
    color: #d63031;
    border: 1px solid #ffcfcf;
}
.text-center {
    text-align: center;
}
.mt-3 {
    margin-top: 15px;
}
.mt-2 {
    margin-top: 10px;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.85rem;
    text-align: center;
}
.db-info {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    margin-top: 5px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 20px;
    }

    .main-nav {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        border-bottom: 3px solid transparent;
        border-left: 3px solid transparent;
        padding-left: 10px;
    }

    .nav-link.active {
        border-bottom: none;
        border-left-color: #667eea;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        margin-bottom: 20px;
        padding: 15px;
    }

    main {
        padding: 15px;
    }

    h2 {
        font-size: 1.3rem;
    }
}
