/* GitHub Updates Page CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus,
*:focus-visible {
    outline: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #fff;
    overflow-x: hidden;
}

/* Navigation styles are handled by /styles.css */

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5865f2;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.6);
    margin-left: -20px;
    padding-left: 20px;
}

@media (min-width: 1307px) {
    .nav-container {
        padding: 0 20px 0 0 !important;
    }
    .nav-logo {
        margin-left: -20px !important;
        padding-left: 20px !important;
    }
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.6));
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.4)); }
    to { filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.6)); }
}

.login-btn {
    background: #5865f2;
    color: #fff;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Profile Section */
.profile-section {
    position: relative;
}

.profile-avatar {
    cursor: pointer;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
}

.discriminator {
    color: #b9bbbe;
    font-size: 0.75rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #b9bbbe;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.profile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.profile-link i {
    width: 20px;
    text-align: center;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Editor Container */
.editor-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Server Management Header */
.server-management-header {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    box-sizing: border-box;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
}

.back-btn {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    color: #b9bbbe;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    max-height: 40px;
    min-width: 120px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(15, 15, 15, 0.4);
    color: #fff;
    transform: translateX(-4px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b9bbbe;
    font-size: 1.125rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
    line-height: 1;
}

.breadcrumb-separator {
    color: #5a5a5a;
}

.current-page {
    color: #fff;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 2rem;
    padding-top: 80px; /* Space for fixed server-management-header */
    min-height: calc(100vh - 160px);
    position: relative;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.github-updates-content {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    min-height: 400px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1005;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #dcddde;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger active state (turn into X) */
.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 1306px) {
    /* Mobile Profile Avatar Fix */
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar,
    .nav-menu .mobile-auth-buttons .profile-avatar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar img,
    .nav-menu .mobile-auth-buttons .profile-avatar img,
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar .avatar-img,
    .nav-menu .mobile-auth-buttons .profile-avatar .avatar-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    /* Header-Styles für Mobile/Tablet */
    .hamburger {
        display: flex !important;
        margin-left: auto;
        z-index: 1005;
        position: relative;
        align-self: center;
        min-width: 30px;
        flex-shrink: 0;
    }
    
    .navbar {
        padding: 1rem 0 !important;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        z-index: 1001 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(10, 10, 15, 0.95) !important;
        backdrop-filter: var(--kynx-blur) !important;
        -webkit-backdrop-filter: var(--kynx-blur) !important;
    }
    
    .nav-container {
        padding: 0 1rem !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 100%;
    }
    
    .nav-logo {
        margin-left: 0 !important;
        padding-left: 0 !important;
        font-size: 1.5rem !important;
        align-items: center !important;
    }
    
    .logo-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 72px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 72px) !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        flex-direction: column !important;
        padding-top: 1rem !important;
        z-index: 998 !important;
        overflow-y: auto !important;
        border-right: none !important;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .editor-container {
        margin-top: 72px;
        padding: 1rem;
    }

    .server-management-header {
        top: 70px;
        padding: 0 1rem;
        height: 70px;
        min-height: 70px;
        max-height: 70px;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .header-left {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: auto;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header-right {
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .back-btn {
        padding: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
        max-height: 40px;
        justify-content: center;
        align-items: center;
        font-size: 0;
        display: flex;
    }
    
    .back-btn span {
        display: none;
    }
    
    .back-btn i {
        font-size: 1rem;
        margin: 0;
        line-height: 1;
    }

    .breadcrumb {
        font-size: 0.875rem;
        gap: 0.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .main-content {
        padding: 1rem;
        padding-top: 80px;
    }
    
    .github-updates-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .server-management-header {
        padding: 0 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
        padding-top: 80px;
    }
    
    .github-updates-content {
        padding: 1rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-container {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.loading-title h2 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loading-title p {
    color: #b9bbbe;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.loading-progress {
    margin-bottom: 2rem;
}

.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5865f2, #7289da);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.progress-text {
    color: #b9bbbe;
    font-size: 0.875rem;
    font-weight: 500;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #72767d;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.step.active {
    color: #5865f2;
}

.step.active i {
    animation: iconPulse 1s ease-in-out infinite;
}

.step.completed {
    color: #43b581;
}

.step.completed i {
    color: #43b581;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* GitHub Updates Overview */
.github-updates-overview {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.overview-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.overview-title p {
    color: #b9bbbe;
    font-size: 1rem;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-channels-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.refresh-channels-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.add-channel-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    white-space: nowrap;
}

.add-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4752c4, #5865f2);
}

/* Channel List */
.channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.channel-card {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.channel-card:active {
    cursor: grabbing;
}

.channel-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.channel-card.drag-over {
    border-color: #5865f2;
    background: rgba(15, 15, 15, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5);
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #5865f2, #7289da);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-card:hover {
    background: rgba(15, 15, 15, 0.4);
    border-color: #5865f2;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.channel-card:hover::before {
    opacity: 1;
}

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

.channel-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 1.5rem;
}

.channel-card-info h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.channel-card-info span {
    color: #b9bbbe;
    font-size: 0.875rem;
}

.channel-card-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b9bbbe;
    font-size: 0.875rem;
}

.stat-item i {
    color: #5865f2;
}

.delete-channel-btn, .edit-channel-btn {
    position: absolute;
    top: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.delete-channel-btn {
    right: 0.75rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.edit-channel-btn {
    right: 3rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
}

.channel-card:hover .delete-channel-btn,
.channel-card:hover .edit-channel-btn {
    opacity: 1;
}

.delete-channel-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

.edit-channel-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: scale(1.1);
}

.drag-handle {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: #72767d;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: grab;
}

.channel-card:hover .drag-handle {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #72767d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #5865f2;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #b9bbbe;
}

.empty-state p {
    color: #72767d;
}

/* Channel Detail View */
.channel-detail-view {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.back-to-overview-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-overview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.channel-icon {
    width: 48px;
    height: 48px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 1.5rem;
}

.channel-name-container h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.channel-id {
    color: #b9bbbe;
    font-size: 0.875rem;
}

.channel-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* Channel Settings */
.channel-settings-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.update-settings-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.update-settings-section {
    flex: 1;
    min-width: 0;
}

.embed-preview-section {
    flex: 1;
    min-width: 0;
}

.recent-updates-section {
    width: 100%;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .update-settings-wrapper {
        flex-direction: column;
    }
    
    .embed-preview-section {
        flex: 1;
        position: relative;
        top: 0;
    }
}

.settings-section {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.settings-title-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.settings-title-with-action .settings-title {
    margin-bottom: 0;
}

.refresh-updates-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.refresh-updates-btn:hover:not(:disabled) {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.refresh-updates-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.refresh-updates-btn i.fa-spin {
    animation: fa-spin 1s infinite linear;
}

.settings-title i {
    color: #5865f2;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.input-group label {
    color: #b9bbbe;
    font-weight: 500;
    font-size: 0.875rem;
}

.repository-input, .select-input {
    background: #000000 !important;
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
    padding-right: 2.5rem;
    cursor: pointer;
    min-height: 48px;
    max-height: 48px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove any pattern/background images from select when open */
.select-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
}

.repository-input:focus, .select-input:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

/* Custom Select Dropdown Styling - Native select options */
.select-input option {
    background: #000000 !important;
    color: #fff;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
}

.select-input option:hover,
.select-input option:focus {
    background: #1a1a1a !important;
}

.select-input option:checked {
    background: #1a1a1a !important;
    color: #fff;
}

/* For better browser compatibility */
.select-input::-ms-expand {
    display: none;
}

/* Custom dropdown styling for repository select */
#repositorySelect {
    background: #000000 !important;
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#repositorySelect option {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #fff;
    padding: 0.75rem 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

#repositorySelect option:hover {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

#repositorySelect option:checked {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

/* Limit dropdown height when open (browser-specific) */
#repositorySelect:focus {
    max-height: 200px;
    overflow-y: auto;
}

/* For WebKit browsers (Chrome, Safari, Edge) - Dropdown list styling */
#repositorySelect {
    background-color: #000000 !important;
}

/* Custom scrollbar for dropdown */
#repositorySelect::-webkit-scrollbar {
    width: 8px;
}

#repositorySelect::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 4px;
}

#repositorySelect::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#repositorySelect::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Ensure text overflow for long repository names */
#repositorySelect,
#repositorySelect option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.input-hint {
    color: #72767d;
    font-size: 0.75rem;
}

.test-repo-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.test-repo-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
}

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

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
    background: #5865f2;
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text {
    color: #b9bbbe;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5865f2;
}

.checkbox-label span {
    color: #b9bbbe;
}

/* Updates List Container */
.updates-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Updates List */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: none; /* Show all 10 commits without scrolling */
    overflow-y: visible;
    padding-right: 0.5rem;
}

.updates-list::-webkit-scrollbar {
    width: 8px;
}

.updates-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.updates-list::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.3);
    border-radius: 4px;
}

.updates-list::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 242, 0.5);
}

.commit-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.commit-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.commit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.commit-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-login {
    color: #72767d;
    font-size: 0.75rem;
}

.commit-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.commit-post-indicator {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.commit-post-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.commit-post-indicator.posted {
    color: #43b581;
}

.commit-post-indicator.posted i {
    color: #43b581;
}

.commit-post-indicator.not-posted {
    color: #72767d;
}

.commit-post-indicator.not-posted i {
    color: #72767d;
}

.commit-post-indicator.not-posted:hover {
    color: #5865f2;
}

.commit-post-indicator.not-posted:hover i {
    color: #5865f2;
}

.commit-date {
    color: #72767d;
    font-size: 0.75rem;
}

.commit-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.commit-message {
    color: #b9bbbe;
    font-size: 0.875rem;
    line-height: 1.5;
}

.commit-message strong {
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.commit-description {
    color: #72767d;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.commit-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.commit-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5865f2;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
}

.commit-link:hover {
    color: #7289da;
    transform: translateX(2px);
}

.commit-link i {
    font-size: 0.875rem;
}

.commit-branch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #72767d;
    font-size: 0.8125rem;
}

.commit-branch i {
    color: #5865f2;
}

.load-more-commits-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.load-more-commits-btn:hover:not(:disabled) {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.load-more-commits-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-commits-btn i {
    font-size: 0.875rem;
}

/* Post Commit Modal */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #5865f2;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b9bbbe;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.commit-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.preview-commit {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.preview-header strong {
    color: #fff;
    font-size: 0.875rem;
    flex: 1;
}

.preview-sha {
    color: #5865f2;
    font-size: 0.75rem;
    font-family: monospace;
    background: rgba(88, 101, 242, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.preview-author {
    color: #72767d;
    font-size: 0.8125rem;
}

/* Embed Preview Styles */
.embed-preview-container {
    background: #2f3136;
    border-radius: 8px;
    padding: 1rem;
    min-height: 200px;
}

.embed-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #72767d;
    text-align: center;
    min-height: 200px;
}

.embed-preview-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Discord Embed Live - Structure like /embeds page */
.discord-embed-live {
    background: #2f3136;
    border-radius: 4px;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    transition: all 0.2s ease;
}

.embed-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.embed-main-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.discord-embed-preview {
    background: #2f3136;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    padding: 0.75rem 1rem 1rem 0.75rem;
    margin-top: 0.5rem;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-embed-preview .embed-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.discord-embed-preview .embed-author-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.discord-embed-preview .embed-title {
    font-size: 1rem;
    font-weight: 600;
    color: #00aff4;
    margin-bottom: 0.5rem;
    text-decoration: none;
    display: block;
}

.discord-embed-preview .embed-title:hover {
    text-decoration: underline;
}

.discord-embed-preview .embed-description {
    font-size: 0.875rem;
    color: #dcddde;
    line-height: 1.375;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.discord-embed-preview .embed-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.discord-embed-preview .embed-field {
    font-size: 0.875rem;
}

.discord-embed-preview .embed-field-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.discord-embed-preview .embed-field-value {
    color: #dcddde;
}

/* Footer styles are now in the editor section above */

.discord-message-preview {
    background: #36393f;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #dcddde;
    word-break: break-all;
}

.discord-message-preview a {
    color: #00aff4;
    text-decoration: none;
}

.discord-message-preview a:hover {
    text-decoration: underline;
}

.custom-message-preview {
    background: #36393f;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #dcddde;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Discord Message Text Preview - looks like real Discord message */
.discord-message-text-preview {
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.375;
    color: #dcddde;
    text-align: left;
    word-wrap: break-word;
}

/* Editor Mode Styles */
.inline-embed-editor {
    position: relative;
    margin-bottom: 1rem;
}

.inline-embed-editor.editing {
    border: 2px solid #5865f2;
    border-radius: 8px;
    padding: 0.5rem;
}

.inline-embed-editor:not(.editing) .discord-embed-live {
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-embed-editor:not(.editing) .discord-embed-live:hover {
    background: #36393f;
    border-left-color: #5865f2;
}

/* Image Upload Areas - like /embeds page */
.embed-image-upload {
    position: relative;
    background: #202225;
    border: 2px dashed #2f3136;
    border-radius: 4px;
    min-height: 120px;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0.75rem;
    padding: 0;
    overflow: visible;
    transition: all 0.2s ease;
}

.embed-image-upload.has-image {
    border: none;
    min-height: auto;
    height: auto;
    background: transparent;
    padding: 0;
}

.embed-image-upload img {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0;
}

.embed-image-upload input[type="file"],
.embed-thumbnail-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.inline-embed-editor.editing .embed-image-upload:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}

.inline-embed-editor:not(.editing) .embed-image-upload {
    cursor: default;
    pointer-events: none;
}

.inline-embed-editor:not(.editing) .embed-image-upload.has-image {
    background: transparent;
}

.embed-thumbnail-upload {
    position: relative;
    width: 80px;
    height: 80px;
    background: #202225;
    border: 2px dashed #2f3136;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    flex-shrink: 0;
    transition: all 0.2s ease;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.inline-embed-editor.editing .embed-thumbnail-upload:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}

.inline-embed-editor:not(.editing) .embed-thumbnail-upload {
    cursor: default;
    pointer-events: none;
}

.inline-embed-editor:not(.editing) .embed-thumbnail-upload.has-image {
    background: transparent;
}

.embed-thumbnail-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #72767d;
}

.thumbnail-placeholder i {
    font-size: 1.5rem;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #72767d;
}

.upload-placeholder i {
    font-size: 2rem;
}

.upload-placeholder span {
    font-size: 0.875rem;
}

.image-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ed4245;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-delete-btn:hover {
    background: #c03537;
    transform: scale(1.1);
}

.image-delete-btn.small {
    width: 18px;
    height: 18px;
    font-size: 0.625rem;
}

.embed-image-upload.has-image .image-delete-btn,
.embed-thumbnail-upload.has-image .image-delete-btn {
    display: flex;
}

.embed-image-upload.has-image:hover .image-delete-btn,
.embed-thumbnail-upload.has-image:hover .image-delete-btn {
    display: flex;
}

.inline-embed-editor:not(.editing) .image-delete-btn {
    display: none !important;
}

/* Footer Section - compact like /embeds page */
.embed-footer-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.embed-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #72767d;
}

.embed-footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.embed-timestamp {
    margin-left: auto;
}
    white-space: pre-wrap;
    margin-bottom: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
    display: block;
}

.discord-message-text-preview:first-child {
    margin-top: 0;
}

.discord-message-text-preview:last-child {
    margin-bottom: 0.5rem;
}

/* Custom Message Input Styles */
.custom-message-input-container {
    margin-bottom: 1rem;
}

.custom-message-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b9bbbe;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.custom-message-label i {
    color: #5865f2;
}

.custom-message-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.custom-message-input-wrapper:focus-within {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.custom-message-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #dcddde;
    font-size: 0.875rem;
    padding: 0.5rem;
    outline: none;
    font-family: inherit;
}

.custom-message-input::placeholder {
    color: #72767d;
}

.emoji-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.emoji-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.emoji-btn i {
    font-size: 1rem;
}

/* Image Upload Styles */
.image-upload-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-upload-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b9bbbe;
    font-size: 0.875rem;
    font-weight: 600;
}

.image-upload-label i {
    color: #5865f2;
}

.image-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-upload-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.image-upload-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.image-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.image-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(237, 66, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.image-remove-btn:hover {
    background: rgba(237, 66, 69, 1);
    transform: scale(1.1);
}

.image-remove-btn i {
    font-size: 0.875rem;
}

/* Embed Image Preview Styles */
.embed-thumbnail-preview {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.embed-thumbnail-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.embed-image-preview {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.embed-image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    object-fit: contain;
}

.loading-updates, .no-updates {
    text-align: center;
    padding: 2rem;
    color: #72767d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.loading-updates i {
    font-size: 2rem;
    color: #5865f2;
}

.no-updates i {
    font-size: 3rem;
    color: #5865f2;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* MEE6-Style Emoji Picker CSS */
.mee6-emoji-picker {
    background: #2f3136;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #40444b;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.emoji-picker-header {
    background: #36393f;
    padding: 16px 20px;
    border-bottom: 1px solid #40444b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
}

.emoji-picker-header:active {
    cursor: grabbing;
}

.search-container {
    flex: 1;
    position: relative;
    margin-right: 12px;
}

.emoji-picker-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emoji-picker-close {
    background: #40444b;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dcddde;
    transition: all 0.2s ease;
}

.emoji-picker-close:hover {
    background: #5865f2;
    color: white;
}

.emoji-picker-close i {
    font-size: 14px;
}

.emoji-search {
    width: 100%;
    background: #40444b;
    border: none;
    border-radius: 4px;
    padding: 8px 12px 8px 36px;
    color: #dcddde;
    font-size: 14px;
    outline: none;
}

.emoji-search::placeholder {
    color: #72767d;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.variation-selector {
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.variation-selector:hover {
    background: #40444b;
}

.variation-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.emoji-picker-main {
    display: flex;
    height: 400px;
}

.emoji-categories-sidebar {
    width: 200px;
    background: #36393f;
    border-right: 1px solid #40444b;
    padding: 16px 16px 16px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: #40444b #2f3136;
}

.emoji-categories-sidebar::-webkit-scrollbar {
    width: 6px;
}

.emoji-categories-sidebar::-webkit-scrollbar-track {
    background: #2f3136;
}

.emoji-categories-sidebar::-webkit-scrollbar-thumb {
    background: #40444b;
    border-radius: 3px;
}

.emoji-categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5865f2;
}

.category-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-item:hover {
    background: #40444b;
    opacity: 0.8;
}

.category-item.active {
    background: #5865f2;
    opacity: 1;
}

.category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.category-name {
    color: #dcddde;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.server-category {
    padding: 12px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #40444b;
}

.server-category:hover {
    background: #40444b;
}

.server-category.active {
    background: #5865f2;
}

.server-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.server-name {
    font-size: 13px;
    color: #dcddde;
    font-weight: 600;
    white-space: nowrap;
}

.emoji-content-area {
    flex: 1;
    background: #2f3136;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-header {
    background: #36393f;
    padding: 12px 16px;
    border-bottom: 1px solid #40444b;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dcddde;
    font-weight: 600;
    font-size: 14px;
}

.emoji-grid {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    overflow-y: auto;
}

.emoji-grid-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.emoji-grid-item:hover {
    background: #40444b;
}

.emoji-grid-item .emoji {
    width: 32px;
    height: 32px;
    user-select: none;
    -webkit-user-drag: none;
}

.emoji-picker-footer {
    background: #36393f;
    padding: 12px 16px;
    border-top: 1px solid #40444b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-emoji-img {
    width: 32px;
    height: 32px;
}

.footer-text {
    flex: 1;
}

.footer-text p {
    color: #dcddde;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #72767d;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #dcddde;
}

.no-results small {
    font-size: 14px;
    opacity: 0.7;
}

.category-server-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #2f3136;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #40444b;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #4f545c;
}

/* GitHub Auth Styles */
.github-auth-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.auth-status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b9bbbe;
}

.auth-status-content i {
    font-size: 1.5rem;
    color: #5865f2;
}

.github-login-btn {
    background: linear-gradient(135deg, #24292e, #2f363d);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-login-btn:hover {
    background: linear-gradient(135deg, #2f363d, #3a4148);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.4);
}

.github-login-btn i {
    font-size: 1.25rem;
}

.github-user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.user-avatar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.github-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.3);
}

#githubUserName {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.github-logout-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.github-logout-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #b9bbbe;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.channel-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.channel-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #72767d;
}

.channel-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.channel-search input:focus {
    outline: none;
    border-color: #5865f2;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.channel-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.channel-option:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: #5865f2;
    transform: translateY(-2px);
}

.channel-option i {
    color: #5865f2;
}

.loading-channels {
    text-align: center;
    padding: 2rem;
    color: #72767d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(88, 101, 242, 0.2);
    border-top-color: #5865f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notifications */
.notification {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #43b581;
}

.notification-error {
    border-left: 4px solid #f04747;
}

.notification-info {
    border-left: 4px solid #5865f2;
}

.notification-warning {
    border-left: 4px solid #faa61a;
}

/* Mobile Responsive for Channel Management */
@media (max-width: 768px) {
    .overview-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .add-channel-btn span {
        display: none;
    }
    
    .channel-list {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .channel-actions {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

