/* Login Form Styling */
.mcbb-login-outer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

/* Invite Error Messages - ensure they're not hidden by fixed header */
.mcbb-invite-error,
.mcbb-invite-success {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 200px auto 2rem auto; /* Increased top margin to prevent header overlap */
    max-width: 800px;
    width: 90%;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
    font-size: 1.1rem;
    line-height: 1.4;
}

.mcbb-invite-error {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid #f44336;
    color: #d32f2f;
}

.mcbb-invite-success {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid #4caf50;
    color: #2e7d32;
}

/* Re-invite form styling */
.mcbb-reinvite-form {
    margin-top: 1.5rem;
    text-align: center;
}

.mcbb-reinvite-form .button {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.mcbb-reinvite-form .button:hover {
    background: #d32f2f;
}

.mcbb-form-note {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

.mcbb-login-form {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    max-width: 400px;
    width: 100%;
}

.mcbb-login-form h2 {
    color: var(--mcbb-gold, #d4af37);
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.mcbb-profile-form .mcbb-form-row {
    margin-bottom: 1.5rem;
}

.mcbb-profile-form .mcbb-form-group {
    display: flex;
    flex-direction: column;
}

.mcbb-profile-form .mcbb-form-group label {
    color: #f7f7f7;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcbb-profile-form .mcbb-form-group input[type="text"],
.mcbb-profile-form .mcbb-form-group input[type="email"],
.mcbb-profile-form .mcbb-form-group input[type="password"] {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    color: #f7f7f7;
    transition: all 0.3s ease;
    outline: none;
}

.mcbb-profile-form .mcbb-form-group input:focus {
    border-color: var(--mcbb-gold, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.mcbb-profile-form .submit-button {
    background: var(--mcbb-gold, #d4af37);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.mcbb-profile-form .submit-button:hover {
    background: #e6c547;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.mcbb-form-response {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.mcbb-form-response.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.mcbb-form-response.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Forgot Password Link */
.mcbb-login-form a {
    color: var(--mcbb-gold, #d4af37);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mcbb-login-form a:hover {
    color: #e6c547;
    text-decoration: underline;
}

/* Dashboard Tab Content Styling */
.mcbb-musician-profile,
.mcbb-musician-gigs,
.mcbb-musician-tax-docs {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    color: #f7f7f7;
}

.mcbb-musician-profile h2,
.mcbb-musician-gigs h2,
.mcbb-musician-tax-docs h2 {
    color: var(--mcbb-gold);
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .mcbb-login-outer {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .mcbb-login-form {
        padding: 2rem 1.5rem;
    }
    
    .mcbb-login-form h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* Additional dashboard content styling */
.mcbb-musician-profile,
.mcbb-musician-gigs,
.mcbb-musician-tax-docs {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    color: #f7f7f7;
}

.mcbb-musician-profile h2,
.mcbb-musician-gigs h2,
.mcbb-musician-tax-docs h2 {
    color: var(--mcbb-gold);
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
}

/* Tab-specific content styling */
.mcbb-dashboard-content-box .mcbb-form-response {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.mcbb-dashboard-content-box .mcbb-form-response.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.mcbb-dashboard-content-box .mcbb-form-response.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Profile form adjustments for tabbed interface */
.mcbb-dashboard-content-box .mcbb-profile-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
}

/* Form width constraints for registration/profile forms */
.mcbb-profile-form {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure registration form (outside dashboard) has proper constraints */
body:not(.page-template-musician-dashboard) .mcbb-profile-form {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mcbb-dashboard-content-box .mcbb-profile-form h2 {
    text-align: left;
    margin-bottom: 2rem;
}

/* Responsive improvements for tabs */
@media (max-width: 600px) {
    .mcbb-dashboard-content-box {
        padding: 1.5rem;
    }
    
    .mcbb-musician-profile h2,
    .mcbb-musician-gigs h2,
    .mcbb-musician-tax-docs h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Dashboard Layout Styles - Scoped to musician dashboard page */
.page-template-musician-dashboard .mcbb-dashboard-wrapper {
    padding-top: 80px;
    max-width: 90vw;
    width: 90vw;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-template-musician-dashboard .mcbb-dashboard-inner {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0 2vw 3rem 2vw;
}

.page-template-musician-dashboard .mcbb-dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.page-template-musician-dashboard .mcbb-dashboard-title {
    color: var(--mcbb-gold);
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 2.3rem;
    text-align: left;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.page-template-musician-dashboard .mcbb-dashboard-logout-form {
    margin: 0;
}

.page-template-musician-dashboard .mcbb-dashboard-logout-form .submit-button {
    padding: 0.5rem 2.2rem;
    font-size: 1rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    background: var(--mcbb-gold);
    color: #222;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.page-template-musician-dashboard .mcbb-dashboard-logout-form .submit-button:hover {
    background: #e6b800;
}

/* Tab Navigation */
.page-template-musician-dashboard .mcbb-dashboard-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
    background: transparent;
}

.page-template-musician-dashboard .mcbb-tab-button {
    background: #2a2a2a;
    border: 1px solid #333;
    border-bottom: none;
    color: #f7f7f7;
    padding: 1rem 2rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px 8px 0 0;
    margin-right: 2px;
}

.page-template-musician-dashboard .mcbb-tab-button:hover {
    background: #333;
    color: var(--mcbb-gold);
    text-decoration: none;
}

.page-template-musician-dashboard .mcbb-tab-button.active {
    background: #1a1a1a;
    color: var(--mcbb-gold);
    border-color: #333;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    z-index: 2;
}

/* Main Content Box */
.page-template-musician-dashboard .mcbb-dashboard-content-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0 8px 8px 8px;
    padding: 2.5rem;
    min-height: 500px;
    color: #f7f7f7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Success Message */
.page-template-musician-dashboard .mcbb-profile-success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
    border-radius: 6px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Messages Section */
.mcbb-messages-section {
    margin-top: 2em;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5em;
}

.mcbb-section-toggle {
    background: #f7f7f7;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    text-align: left;
    padding: 0.75em 1em;
    cursor: pointer;
    position: relative;
    outline: none;
}

.mcbb-badge.mcbb-messages-unread-badge {
    background: #d32f2f;
    color: #fff;
    border-radius: 1em;
    padding: 0.2em 0.7em;
    font-size: 0.9em;
    margin-left: 0.7em;
    vertical-align: middle;
    display: inline-block;
}

.mcbb-section-arrow {
    float: right;
    transition: transform 0.2s;
}

.mcbb-section-toggle[aria-expanded="true"] .mcbb-section-arrow {
    transform: rotate(90deg);
}

.mcbb-section-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 1em;
}

.mcbb-messages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcbb-message-item {
    display: flex;
    align-items: center;
    padding: 0.7em 0.5em;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.mcbb-message-item:last-child {
    border-bottom: none;
}

.mcbb-message-item:hover {
    background: #f9f9f9;
}

.mcbb-message-date {
    color: #888;
    font-size: 0.95em;
    margin-right: 1.2em;
    min-width: 7em;
}

.mcbb-message-subject {
    flex: 1;
    font-weight: 500;
}

.mcbb-message-unread-dot {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    background: #d32f2f;
    border-radius: 50%;
    margin-left: 0.7em;
    vertical-align: middle;
}

.mcbb-message-unread {
    font-weight: bold;
    background: #fff8e1;
}

/* Improved contrast for read messages */
.mcbb-message-read,
.mcbb-message-item.mcbb-message-read {
    background: #f7f7fa !important;
    color: #181818 !important;
    font-weight: normal !important;
    border-left: 4px solid #bdbdbd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
    padding-left: 1em !important;
}

.mcbb-messages-empty {
    color: #888;
    padding: 1em 0;
    text-align: center;
}

/* Modal styles */
.mcbb-modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcbb-modal-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 500px;
    width: 95vw;
    padding: 2em 1.5em 1.5em 1.5em;
    position: relative;
    animation: mcbb-modal-fadein 0.2s;
}

.mcbb-modal-close {
    position: absolute;
    top: 0.7em;
    right: 1em;
    background: none;
    border: none;
    font-size: 2em;
    color: #888;
    cursor: pointer;
}

.mcbb-modal-header {
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.mcbb-modal-subject {
    font-size: 1.2em;
    font-weight: bold;
}

.mcbb-modal-date {
    color: #888;
    font-size: 0.95em;
}

.mcbb-modal-body {
    font-size: 1.05em;
    line-height: 1.6;
    margin-top: 0.5em;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5em;
}

.mcbb-modal-backdrop {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 9998;
}

@keyframes mcbb-modal-fadein {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .mcbb-modal-content { max-width: 98vw; padding: 1em 0.5em; }
}