/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Navigation Styles */
.main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.nav-link {
    display: inline-block;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Desktop: Single row layout */
@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        justify-content: center;
        grid-template-columns: none;
        max-width: none;
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small mobile: Ensure 2x2 grid works */
@media (max-width: 480px) {
    .main-nav {
        gap: 0.6rem;
        max-width: 400px;
        padding: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Tablet: 2x2 grid with larger spacing */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-nav {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        max-width: 700px;
        padding: 0;
    }
    
    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

.nav-link:active {
    transform: translateY(0);
}

.admin-link {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
}

.admin-link:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
}

/* Google Sheets Status Indicator */
.sheets-status-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.sheets-status-container .status-indicator {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sheets-status-container .status-indicator.connected {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.sheets-status-container .status-indicator.disconnected {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
}

.sheets-status-container .status-indicator.checking {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

/* Ban Management Styles */
.ban-management-container {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ban-management-container h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ban-loading, .ban-not-found {
    text-align: center;
    padding: 2rem;
    color: #fff;
    font-size: 1.1rem;
}

.ban-loading {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    margin: 1rem 0;
}

.ban-not-found {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    margin: 1rem 0;
}

.ban-results {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-entry {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ban-entry:last-child {
    margin-bottom: 0;
}

.ban-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-entry-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.ban-entry-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tabbed Interface Styles */
.ban-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.ban-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ban-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ban-tab-status {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.ban-tab-status.pending {
    background: #ffc107;
}

.ban-tab-status.banned {
    background: #f44336;
}

.ban-tab-status.unbanned {
    background: #4CAF50;
}

.ban-entry-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Monthly Statistics Styles */
.monthly-stats-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.monthly-stats-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.monthly-stats-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.clickable-stat {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.clickable-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 8px;
    display: inline-block;
}

.clickable-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1em;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: 0.8em;
    opacity: 0.7;
    font-style: italic;
}

/* Violation Service Styles */
.violation-status-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.currently-banned-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.violation-header {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.violation-data {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.violation-data pre {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.violation-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #ffcdd2;
    text-align: center;
}

.ban-user-info h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

/* TikTok Newsroom Section */
.newsroom-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsroom-container h3 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    text-align: center;
}

.newsroom-content {
    color: #fff;
}

.newsroom-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.newsroom-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.newsroom-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.newsroom-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.4;
}

.newsroom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.newsroom-time {
    font-style: italic;
}

.newsroom-source {
    font-weight: 500;
}

.newsroom-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.newsroom-error {
    text-align: center;
    color: #ffcdd2;
}

.newsroom-retry-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.newsroom-retry-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* Creator Contact Search Section */
.creator-contact-search {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.creator-contact-search h3 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    text-align: center;
}

/* Creator Contact Modal Styles */
.contact-modal {
    max-width: 320px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-search-container {
    margin-bottom: 8px;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.creator-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease;
}

.creator-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-suggestions {
    display: none; /* Hidden since we show suggestions in input field */
}

.contact-info {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.contact-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    min-width: 40px;
}

.contact-value {
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    text-align: right;
    flex: 1;
    margin-left: 8px;
}

.contact-phone-container {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    margin-left: 8px;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(102, 126, 234, 0.1);
}

.contact-link:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.2);
}

.contact-link[href="#"] {
    color: #999;
    cursor: default;
    background: rgba(153, 153, 153, 0.1);
}

.contact-link[href="#"]:hover {
    color: #999;
    background: rgba(153, 153, 153, 0.1);
}

.contact-error {
    background: rgba(255, 243, 205, 0.8);
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    text-align: center;
}

.contact-error p {
    color: #856404;
    margin: 0;
    font-weight: 500;
    font-size: 13px;
}

.ban-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-field:last-of-type {
    border-bottom: none;
}

.ban-field label {
    color: #fff;
    font-weight: 600;
    min-width: 150px;
}

.ban-field span {
    color: #fff;
    flex: 1;
    text-align: right;
}

.view-btn, .link-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.link-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.view-btn:hover, .link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#ban-date-input, #ban-column-t-input {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    flex: 1;
    text-align: right;
}

#ban-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

#ban-column-t-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.ban-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.ban-action-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ban-action-btn.banned {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.ban-action-btn.pending {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.ban-action-btn.unbanned {
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: white;
}

.ban-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Notes section styles */
.ban-notes-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ban-notes-display {
    cursor: pointer;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ban-notes-display:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.notes-content {
    color: #fff;
    flex: 1;
    text-align: left;
    word-wrap: break-word;
}

/* Show full notes on desktop, mobile version on mobile */
.notes-content-full {
    display: block;
}

.notes-content-mobile {
    display: none;
}

.notes-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Notes view modal */
.notes-view-modal {
    max-width: min(500px, calc(100vw - 2rem));
}

.notes-view-content {
    color: #fff;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}


.ban-notes-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notes-textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.notes-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.notes-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.notes-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.notes-save-btn,
.notes-cancel-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.notes-save-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: white;
}

.notes-save-btn:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    transform: translateY(-1px);
}

.notes-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notes-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal for Column G details */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: min(600px, calc(100vw - 2rem));
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    color: #fff;
    margin: 0;
}

.close {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    color: #fff;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Database status indicator */
.status-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

.status-indicator.connected .status-dot {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-indicator.disconnected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.status-indicator.disconnected .status-dot {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-indicator.error {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
}

.status-indicator.error .status-dot {
    background: #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

/* Retry button */
.retry-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.retry-button:active {
    transform: translateY(0);
}

.retry-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Authentication Styles */
.auth-container {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-button, .logout-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 48px;
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.login-button.loading .btn-text {
    display: none;
}

.login-button.loading .btn-loading {
    display: inline;
}

.login-button:hover, .logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.logout-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    margin-top: 1rem;
}

.user-info {
    text-align: center;
}

.user-details h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Leaderboard Styles */
.leaderboard-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-title {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leaderboard-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-right: 1rem;
    min-width: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rank.first {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank.second {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.rank.third {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

.creator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.username-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.username-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.user-id {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
}

.last-live {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.hours {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1px;
}

.diamonds {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diamonds::before {
    content: '💎';
    font-size: 1.1rem;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    padding: 2rem;
}

.error {
    text-align: center;
    color: #ff6b6b;
    font-size: 1.1rem;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.no-data {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-data p {
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.no-data strong {
    color: #fff;
    font-weight: 600;
}

.join-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.trend-btn {
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #fff;
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    border-color: rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.trend-btn:active {
    transform: scale(0.95);
}

.trend-overview-btn {
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-overview-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    border-color: rgba(102, 126, 234, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.trend-overview-btn:active {
    transform: translateY(0);
}

.trend-summary {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.summary-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.summary-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
}

.trend-totals {
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.trend-totals h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.join-date {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.join-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Google Sheets Styles */
.sheets-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sheets-title {
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sheets-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sheets-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group input {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sheets-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sheets-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sheets-button:active {
    transform: translateY(0);
}

.sheets-data {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.sheets-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.sheets-table th,
.sheets-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sheets-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.sheets-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .modal-content {
        width: 95%;
        max-width: calc(100vw - 1rem);
        margin: 2% auto;
        padding: 1rem;
    }
    
    .trend-modal-content {
        max-width: calc(100vw - 1rem);
        padding: 1rem;
    }
    
    .leaderboard-container {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .leaderboards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .leaderboard-section {
        padding: 1rem;
    }
    
    .leaderboard-title {
        font-size: 1.3rem;
    }
    
    .leaderboard-item {
        padding: 0.7rem 0.8rem;
    }
    
    .rank {
        font-size: 1.1rem;
        min-width: 1.3rem;
    }
    
    .username {
        font-size: 0.9rem;
    }
    
    .diamonds {
        font-size: 1.1rem;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-nav {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .status-indicator {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Show mobile truncated notes, hide full notes on mobile */
    .notes-content-full {
        display: none;
    }
    
    .notes-content-mobile {
        display: block;
    }
    
    /* Stack ban action buttons vertically on mobile */
    .ban-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ban-action-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .modal-content {
        width: 98%;
        max-width: calc(100vw - 0.5rem);
        margin: 1% auto;
        padding: 1rem;
    }
    
    .trend-modal-content {
        max-width: calc(100vw - 0.5rem);
        padding: 0.75rem;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: 200px;
        max-width: calc(100% - 1rem);
    }
    
    .status-indicator {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}


/* Inactive Creators Modal Styles */
.inactive-creators-list {
    max-height: 400px;
    overflow-y: auto;
    white-space: normal !important;
    line-height: normal !important;
}

.inactive-creators-list * {
    white-space: normal !important;
    line-height: normal !important;
}

.inactive-creator-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.inactive-creator-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.inactive-creator-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.inactive-creator-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.inactive-creator-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.inactive-creator-link:active {
    color: #5a67d8;
}

.create-ticket-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #28a745;
    border: 1px solid #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.create-ticket-link:hover {
    color: #fff;
    background: #218838;
    border-color: #1e7e34;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.create-ticket-link:active {
    color: #fff;
    background: #1e7e34;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.inactive-creator-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.3;
}

.inactive-creator-details span {
    display: inline;
    margin: 0;
    padding: 0;
}

.inactive-creator-last-live {
    color: #ffcdd2;
    font-style: italic;
}

.inactive-creator-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.85rem;
}

.inactive-creator-stat {
    color: rgba(255, 255, 255, 0.7);
}

/* Creator Trends Modal Styles */
.trend-modal-content {
    max-width: 900px;
    max-width: min(900px, calc(100vw - 2rem));
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.trend-content {
    padding: 0;
}

.trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.trend-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.trend-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.trend-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.trend-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.trend-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.trend-card.trend-up {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.trend-card.trend-down {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.trend-card.trend-neutral {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.trend-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trend-icon {
    font-size: 1.5rem;
}

.trend-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.trend-card-body {
    text-align: center;
}

.trend-value {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.trend-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.trend-indicator {
    font-size: 1.5rem;
}

.trend-percentage {
    font-size: 1.3rem;
    font-weight: bold;
}

.trend-percentage.trend-up {
    color: #4caf50;
}

.trend-percentage.trend-down {
    color: #f44336;
}

.trend-percentage.trend-neutral {
    color: #ff9800;
}

.trend-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.trend-details {
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.trend-details h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.comparison-grid {
    display: grid;
    gap: 0.5rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    align-items: center;
}

.comparison-row:first-child {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.comparison-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.comparison-value {
    color: #fff;
    text-align: center;
}

.trend-error {
    text-align: center;
    padding: 3rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .trend-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .comparison-value {
        text-align: left;
    }
}
