#streamtipz-dashboard-tabs {
    padding: 30px;
    background: #fff;
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: none;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.tab-buttons button {
    background: #f5f5f7;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-buttons button:hover {
    background: #e9e9ef;
    color: #333;
}

.tab-buttons button.active {
    background: #5e62f4;
    color: white;
    box-shadow: 0 2px 8px rgba(94, 98, 244, 0.3);
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: #222;
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.dashboard-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

.dashboard-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
    color: #5e62f4;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.card p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.fee-note {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    display: block;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9fb;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    align-items: center;
}

.filter-section .filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 200px;
}

.filter-section label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    min-width: 40px;
}

.filter-section input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
    flex: 1;
    background: white;
    transition: all 0.2s;
}

.filter-section .filter-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-section button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

#admin-tab .filter-section {
    background: #f5f5f9;
}

#admin-tab .filter-section .filter-group {
    flex: 1 1 220px;
}

#admin-tab .filter-section input {
    min-width: 160px;
}

#apply-filters, 
#admin-apply-filters {
    background: #5e62f4;
    color: white;
    border: none;
    min-width: 120px;
    justify-content: center;
}

#download-csv, 
#download-admin-csv {
    background: white;
    color: #5e62f4;
    border: 1px solid #5e62f4;
    min-width: 120px;
    justify-content: center;
}

#refresh-admin-data {
    background: #f5f5f7;
    color: #555;
    border: 1px solid #ddd;
    min-width: 100px;
    justify-content: center;
}

#apply-filters:hover, 
#admin-apply-filters:hover {
    background: #4a4ed4;
    box-shadow: 0 2px 6px rgba(74, 78, 212, 0.2);
}

#download-csv:hover, 
#download-admin-csv:hover {
    background: #f5f5ff;
    border-color: #4a4ed4;
}

#refresh-admin-data:hover {
    background: #e9e9ef;
}

/* Table Container for Horizontal Scrolling */
.tip-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(to right, white 30%, rgba(255,255,255,0)),
                linear-gradient(to left, white 30%, rgba(255,255,255,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%;
    background-attachment: local, local;
}

.tip-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 600px;
}

.tip-table th {
    background: #f7f7f9;
    color: #555;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tip-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 14px;
}

.tip-table tr:last-child td {
    border-bottom: none;
}

.tip-table tr:hover td {
    background: #f9f9ff;
}

/* Mobile Table Styles */
@media (max-width: 768px) {
    .tab-buttons {
        gap: 6px;
        padding-bottom: 8px;
    }
    
    .tab-buttons button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .dashboard-header h2 {
        font-size: 24px;
    }
    
    .card {
        min-width: calc(50% - 8px);
        padding: 16px;
    }
    
    .card h3 {
        font-size: 22px;
    }
    
    .filter-section {
        padding: 16px;
        gap: 12px;
    }
    
    .filter-section input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .filter-section button {
        padding: 8px 12px;
        font-size: 13px;
        height: 36px;
    }
    
    .tip-table th,
    .tip-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tip-table-container:after {
        content: "→ Scroll to view more →";
        display: block;
        text-align: center;
        padding: 8px;
        font-size: 12px;
        color: #888;
        background: #f5f5f5;
        border-radius: 0 0 8px 8px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    #streamtipz-dashboard-tabs {
        padding: 20px 15px;
    }
    
    .card {
        min-width: 100%;
    }
    
    .filter-section .filter-group {
        flex: 1 1 100%;
    }
    
    .filter-section .filter-actions {
        width: 100%;
        margin-left: 0;
    }
    
    .filter-section button {
        flex: 1;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.pagination button {
    padding: 10px 20px;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #e9e9ef;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    color: #666;
    font-size: 14px;
}

.account-settings {
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

.account-settings h2 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.account-settings h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #5e62f4;
    border-radius: 3px;
}

.account-settings ul {
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

.account-settings li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.account-settings li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5e62f4;
    font-weight: bold;
}

.account-settings .form-group {
    margin-bottom: 25px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f5;
    transition: all 0.3s ease;
}

.account-settings .form-group > *:not(:last-child) {
    margin-bottom: 15px;
}

.account-settings label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.account-settings .form-group small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 13px;
    font-style: italic;
}

.account-settings input[type="text"],
.account-settings textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e0e0eb;
    font-size: 15px;
    transition: all 0.3s;
    background: #f9f9fc;
    box-sizing: border-box;
}

.account-settings textarea {
    min-height: 120px;
    resize: vertical;
}

.account-settings input[type="text"]:focus,
.account-settings textarea:focus {
    border-color: #5e62f4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 98, 244, 0.1);
    background: #fff;
}

.profile-photo-upload {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-photo-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-upload .upload-controls {
    flex: 1;
    width: 100%;
}

.account-settings input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #d0d0dd;
    border-radius: 8px;
    background: #f9f9fc;
    transition: all 0.3s;
}

.account-settings input[type="file"]:hover {
    border-color: #5e62f4;
    background: #f5f5ff;
}

.account-settings button[type="submit"] {
    padding: 14px 28px;
    background: #5e62f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.account-settings button[type="submit"]:hover {
    background: #4a4ed4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 98, 244, 0.2);
}

.account-settings button[type="submit"]:active {
    transform: translateY(0);
}

.welcome-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #5e62f4 0%, #8a64f0 100%);
    border-radius: 12px;
    color: white;
}

.welcome-section h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: white;
}

.tip-url-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: white;
}

.tip-url-box {
    display: flex;
    flex: 1;
    min-width: 250px;
    max-width: 100%;
}

.tip-url-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 1);
    color: white !important;
    cursor: text;
    user-select: all;
}

.tip-url-box input {
    outline: 1px solid white !important; /* White outline */
    outline-offset: -2px; /* Ensures outline appears inside */
}

.tip-url-box input:focus {
    outline: 2px solid white !important; /* Thicker outline when focused */
    outline-offset: -2px;
    background: rgba(255, 255, 255, 0.3);
}

.copy-button {
    padding: 10px 15px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-button:hover {
    background: #1a2634;
}

.copy-button.copied {
    background: #4CAF50;
}

.streamtipz-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.streamtipz-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.streamtipz-alert-box {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.streamtipz-alert-overlay.active .streamtipz-alert-box {
    transform: translateY(0);
}

.streamtipz-alert-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.streamtipz-alert-message {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.streamtipz-alert-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.streamtipz-alert-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.streamtipz-alert-button-primary {
    background: #5e62f4;
    color: white;
}

.streamtipz-alert-button-primary:hover {
    background: #4a4ed4;
}

/* Loading state */
#tip-table-body tr.loading {
    color: #888;
    font-style: italic;
    text-align: center;
}

/* Bio textarea specific styling */
.account-settings textarea[name="bio"] {
    min-height: 120px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
    background: #f9f9fc;
    resize: vertical;
}

.account-settings textarea[name="bio"]:focus {
    border-color: #5e62f4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 98, 244, 0.1);
    background: #fff;
}

/* Mobile responsive for account settings */
@media (max-width: 768px) {
    .account-settings {
        padding: 0 10px;
    }
    
    .account-settings h2 {
        font-size: 22px;
    }
    
    .account-settings .form-group {
        padding: 20px;
    }
    
    .profile-photo-upload {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .profile-photo-preview {
        width: 80px;
        height: 80px;
    }
    
    .account-settings input[type="text"],
    .account-settings textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .account-settings button[type="submit"] {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .streamtipz-alert-buttons {
        flex-direction: column;
    }
    
    .streamtipz-alert-button {
        width: 100%;
        margin-bottom: 8px;
    }
}