body.tb-dashboard {
    margin:0;
    padding:0;
    height:100vh;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    font-family:'Lato', sans-serif;
}

/* Hide the WordPress admin bar when the dashboard shortcode is rendered */
body.tb-dashboard.admin-bar {
    margin-top:0 !important;
}

.tb-dashboard #wpadminbar {
    display:none !important;
}

body.tb-dashboard[data-theme="dark"] {
    background:#111;
    color:#f1f1f1;
}

#tubebrew-dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 65px; /* offset fixed top bar + extra space */
    padding-left: 70px; /* left menu + gap */
    padding-right: 10px; /* gap from right edge */
}

.tb-top-bar {
    position: fixed;
    top: 15px;
    left: 70px; /* account for left bar and gap */
    right: 10px; /* gap from right edge */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    box-sizing: border-box;
    background: #f4f4f4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 1000;
}

body.tb-dashboard[data-theme="dark"] .tb-top-bar {
    background:#222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tb-left-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 999;
}

body.tb-dashboard[data-theme="dark"] .tb-left-bar {
    background: #222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tb-left-bar a {
    margin: 0.5rem 0;
    color: inherit;
    text-decoration: none;
    font-size: 1.2rem;
}

.tb-menu-links a {
    margin-right:1rem;
    text-decoration:none;
    color:inherit;
}

.tb-actions {
    display:flex;
    align-items:center;
}

.tb-login {
    position:relative;
}

.tb-login-dropdown {
    display:none;
    position:absolute;
    right:0;
    top:100%;
    background:#f4f4f4;
    padding:0.5rem;
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
    z-index:10;
}

body.tb-dashboard[data-theme="dark"] .tb-login-dropdown {
    background:#222;
}

#tb-add-idea,
#tb-dark-toggle {
    margin-right:1rem;
    background:none;
    border:none;
    font-size:1.1rem;
    cursor:pointer;
}

#tb-dark-toggle i {
    pointer-events:none;
}

.tb-content {
    flex:1;
    padding:1rem;
    display:flex;
    gap:1rem;
    align-items:flex-start;
}

.tb-connect-wrapper {
    margin-top:2rem;
}

.tb-connect {
    padding:0.5rem 1rem;
    background:#dc3912;
    color:#fff;
    border:none;
    cursor:pointer;
}

body.tb-dashboard[data-theme="dark"] .tb-connect {
    background:#c33;
}

.tb-settings-container {
    flex: 1;
    padding: 1rem;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

.tb-theme-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-email-ideas {
    margin-top: 0.5rem;
}

.tb-transactions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tb-transactions li {
    margin: 0.25rem 0;
}
#tb-payments > div {
    text-align: left;
    width: 100%;
}

.tb-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

.tb-table th,
.tb-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
}

.tb-table th {
    font-weight: 600;
}

.tb-status-active {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Idea Form Styles */
#tb-idea-form {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

#tb-idea-form .tb-form-wrapper {
    width: 100%;
    max-width: 500px;
}

#tb-idea-form .tb-field {
    margin-bottom: 1rem;
}

#tb-idea-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#tb-idea-form input[type="text"],
#tb-idea-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#tb-idea-form .tb-social-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#tb-idea-form .tb-social-option {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#tb-idea-form .tb-social-option i {
    font-size: 1.1rem;
}

#tb-user-settings,
#tb-youtube-settings {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

#tb-team-members {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

#tb-team-members .tb-form-wrapper {
    width: 100%;
    max-width: 500px;
}

#tb-team-members .tb-field {
    margin-bottom: 1rem;
}

#tb-team-members label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#tb-team-members input[type="text"],
#tb-team-members input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#tb-team-members .tb-field-row {
    display: flex;
    gap: 0.75rem;
}

#tb-team-members .tb-field-row .tb-field {
    flex: 1 1 0;
    margin-bottom: 1rem;
}

#tb-recent-ideas {
    margin: 0 0 2rem;
    width: 45%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 0.5rem;
}

body.tb-dashboard[data-theme="dark"] #tb-recent-ideas {
    background: #222;
    border-color: #444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

#tb-recent-ideas h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.tb-ideas-flex {
    display: flex;
    align-items: center;
}

.tb-ideas-list {
    list-style: none;
    padding: 0;
    margin: 0 0.5rem 0 0;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

.tb-ideas-list li {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-idea-title {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.tb-idea-social-icons i {
    margin-left: 0.25rem;
}
