/* Base styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell;
    background: var(--bg-gradient);
    color: #fff;
    min-height: 100vh;
}

/* All headings should be white */
h1, h2, h3, h4, h5, h6 {
    color: white;
}

/* User profile styles */
#userAvatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

#username {
    font-size: 16px;
    margin: 0;
    color: white;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    margin: 0;
}

.user-info:hover {
    opacity: 0.8;
}

/* Telegram Login Widget Container */
#telegramLoginContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Telegram login button (fallback) */
.telegram-login-btn {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.telegram-login-btn:hover {
    background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.telegram-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}

/* Container styles */
.container, .profile-container {
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Cards and Sections */
.card {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-body {
    padding: 1rem;
}

.profile-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.profile-info {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.profile-info p {
    margin: 8px 0;
    color: #fff;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
    max-width: 100%;
}

.profile-info .wallet-address {
    display: inline-block;
    word-break: break-all;
    max-width: 100%;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.profile-info p {
    margin: 8px 0;
    color: #fff;
    word-break: break-word;
    font-size: 14px;
}

.profile-info span {
    color: #a0a0a0;
    margin-left: 8px;
}

.input-group {
    width: 100%;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.error-message {
    font-size: 14px;
    color: #ff4444;
    margin-top: 4px;
}

.button {
    padding: 8px 16px;
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    background: #3e8e41;
}

/* Button styles */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-success {
    background-color: #198754;
    color: white;
}

.btn-success:hover {
    background-color: #157347;
}

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

/* Tables */
.distribution-controls {
    display: none;
    padding: 0.5rem 1rem;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #fff;
}

.distribution-controls span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.distribution-controls button {
    padding: 4px 12px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.distribution-controls button:disabled {
    opacity: 0.5;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0 -15px;
    padding: 0 15px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #fff;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table-dark {
    background: transparent;
}

/* Column widths */
.col-user {
    min-width: 120px;
    text-align: left !important;
}

.col-check {
    width: 60px;
}

.col-check input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

.col-number {
    width: 100px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .col-user {
        min-width: 100px;
    }
    
    .col-check {
        width: 40px;
    }
    
    .col-number {
        width: 80px;
    }
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px;
    background: linear-gradient(0deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.15) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    height: 40px;
    box-shadow: 0 -2px 20px rgba(59, 130, 246, 0.1);
    z-index: 9999;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}

.nav-item {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.2s;
}

.nav-item div {
    font-size: 18px;
}

.nav-item.active {
    opacity: 1;
    color: #4CAF50;
}

/* Gallery specific */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 4px 8px;
    margin-top: 0;
    margin-bottom: 56px;
}

.gallery-item {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    position: relative;
    aspect-ratio: 1024/768;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.creator {
    margin: 0;
    color: #fff;
    font-size: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vote-info {
    display: flex;
    align-items: center;
    gap: 3px;
}

.heart {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.heart:hover {
    transform: scale(1.2);
}

.thumbnail-generator {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.thumbnail-generator.clickable {
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-generator.clickable:hover {
    transform: scale(1.2);
}

.thumbnail-generator.click-animation {
    transform: scale(0.8);
}

.profile-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.profile-info p {
    margin: 8px 0;
    color: #fff;
}

.profile-info span {
    color: #a0a0a0;
    margin-left: 8px;
}

.menu-text h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-text p {
    margin: 4px 0 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.main-menu {
    padding: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.menu-text {
    flex: 1;
    color: white !important;
}

.menu-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-text .highscore {
    color: white !important;
    font-size: 14px;
    margin-top: 4px;
}

.menu-text .highscore span {
    color: #ffd700 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wallet-address {
    display: inline-block;
    word-break: break-word;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

/* User List */
.user-list-container {
    padding: 4px 16px !important;
    width: 100% !important;
    min-width: 320px !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
}

.user-list-container h2 {
    margin: 0 0 4px 0 !important;
    font-size: 16px !important;
}

.user-list-header {
    display: grid !important;
    grid-template-columns: minmax(80px, 30%) 30px 30px minmax(80px, 1fr) minmax(80px, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 2px 0 !important;
    font-size: 12px !important;
    color: #aaa !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 4px !important;
    min-width: 320px !important;
}

.user-list-header span {
    text-align: right !important;
}

.user-list-header span:first-child {
    text-align: left !important;
}

.user-list {
    display: flex !important;
    flex-direction: column !important;
    min-width: 320px !important;
}

.user-card {
    display: grid !important;
    grid-template-columns: minmax(80px, 30%) 30px 30px minmax(80px, 1fr) minmax(80px, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 2px 0 !important;
    font-size: 14px !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
}

.user-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-weight: normal !important;
}

.check-icon {
    color: #4CAF50 !important;
    font-size: 14px !important;
    text-align: center !important;
}

.xp-value, .garf-value {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
}

#error-message {
    color: #ff4444 !important;
    margin: 4px 0 !important;
    text-align: center !important;
    font-size: 14px !important;
}

@media (max-width: 480px) {
    .user-list-container {
        padding: 4px 8px !important;
    }
    .user-card, .user-list-header {
        font-size: 12px !important;
        gap: 4px !important;
    }
    .check-icon {
        font-size: 12px !important;
    }
}

.userlist-container, .user-header, .user-row, .user-checks, .user-xp, .user-garf {
    display: none !important;
}

/* Container for user list page */
.userlist-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

.userlist-container h2 {
    color: #fff;
    margin-bottom: 24px;
}

/* Profile page styles */
.profile-container {
    padding: 0;
    margin: 0;
    width: 100%;
}

.profile-header {
    margin: 0;
    padding: 2px;
}

.profile-header h2 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.profile-header .user-id {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.profile-details {
    margin: 0;
    padding: 2px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.detail-row {
    margin: 0;
    padding: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-label {
    margin: 0;
    padding: 0;
    min-width: 80px;
    font-weight: 600;
}

.edit-buttons {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    margin-top: 4px;
}

#wallet-edit, #twitter-edit {
    margin: 4px 0;
    padding: 4px;
    background: var(--bg-primary);
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

#wallet-edit.hidden, #twitter-edit.hidden {
    display: none;
}

#wallet-edit input, #twitter-edit input {
    width: 100%;
    padding: 4px;
    margin-bottom: 4px;
    box-sizing: border-box;
}

.action-button {
    margin: 0;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

.balance-display {
    margin: 0;
    padding: 2px;
    line-height: 1;
}

.bottom-error {
    margin: 0;
    padding: 8px;
}

/* Responsive adjustments */
.profile-container {
    margin: 0 auto;
    padding: 0 10px;
}

.detail-value {
    flex-wrap: wrap;
}

.wallet-address {
    max-width: calc(100% - 70px); /* Account for button width */
    width: 100%;
    word-break: break-all;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.user-id {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.profile-details {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-row {
    margin-bottom: 5px;
    padding: 5px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    display: inline-block;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

#wallet-edit, #twitter-edit {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 4px;
    display: block;
}

#wallet-edit.hidden, #twitter-edit.hidden {
    display: none;
}

#wallet-edit input, #twitter-edit input {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    width: 300px;
}

/* Update color variables */
:root {
    --primary-blue: #3b82f6;
    --primary-hover: #2563eb;
    --light-blue: #60a5fa;
    --dark-blue: #1e40af;
    --bg-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-title h2 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.user-id {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0 0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.detail-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: white;
}

.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-btn:hover {
    opacity: 1;
}

.edit-container {
    margin-top: 12px;
}

.edit-container input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    margin-bottom: 12px;
}

.save-btn {
    padding: 8px 16px;
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.stat-value {
    font-size: 24px;
    color: white;
    font-weight: 600;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-icon {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-card:hover .menu-icon img {
    transform: scale(1.05);
}

.menu-text {
    flex: 1;
}

.menu-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    max-width: 90%;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.popup-info {
    padding: 15px;
    color: white;
    text-align: center;
}

.popup-info a {
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
}

.popup-info a:hover {
    background: var(--primary-blue);
    color: white;
}

.heart {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.heart:hover {
    transform: scale(1.2);
}

.profile-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.profile-info p {
    margin: 8px 0;
    color: #fff;
}

.profile-info span {
    color: #a0a0a0;
    margin-left: 8px;
}

.menu-text h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-text p {
    margin: 4px 0 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.main-menu {
    padding: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.wallet-address {
    display: inline-block;
    word-break: break-word;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

/* Profile Page Styles */
.profile-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-username {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

.profile-userid {
    font-size: 14px;
    color: #fff;
    margin: 5px 0;
}

.profile-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-section h3 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
}

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

.stat-item {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.stat-label {
    font-size: 14px;
    color: #fff;
    margin: 5px 0 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group-text {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #fff;
    border-right: none;
}

.form-control.dark {
    background: #1a1a1a;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    width: 100%;
}

.form-control.dark {
    background: #1a1a1a;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    width: 100%;
}

.hidden {
    display: none !important;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #3e8e41;
}

.btn-secondary {
    background: #1a1a1a;
    color: #fff;
}

.btn-secondary:hover {
    background: #1a1a1a;
}

.message {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message.error {
    background: #ff4444;
    color: #fff;
}

.message.success {
    background: #4CAF50;
    color: #fff;
}

/* Twitter Page Styles */
.table-dark {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.table-dark th {
    background: #1a1a1a;
    color: #fff;
    border-color: #fff;
    padding: 12px;
}

.table-dark td {
    border-color: #fff;
    padding: 12px;
}

.link-light {
    color: #fff;
    text-decoration: none;
}

.link-light:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.twitter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

.tweet-input-section {
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    max-width: 800px;
}

.tweet-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
}

.primary-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Grid layout for header and content */
.tweets-header,
.tweet-item {
    display: grid;
    grid-template-columns: minmax(250px, 2.5fr) minmax(120px, 1fr) 70px 70px 70px 90px;
    gap: 10px;
    padding: 12px 15px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.tweets-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1px;
}

.tweet-item {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tweet-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.tweet-link {
    color: #1DA1F2;
    text-decoration: none;
    font-size: 14px;
}

.twitter-link {
    color: #1DA1F2;
    text-decoration: none;
    font-size: 14px;
}

.checkbox-col,
.validation-checkbox {
    justify-self: center;
}

.date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    justify-self: end;
}

.edit-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.validation-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.puzzle-piece.selected {
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.7);
    border: 2px solid orange;
    transition: all 0.3s ease-in-out;
}

.thumbnail-generator.clickable {
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-generator.clickable:hover {
    transform: scale(1.2);
}

.thumbnail-generator.click-animation {
    transform: scale(0.8);
}