/* Rezziter - Modern Dark Theme CSS */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e4e4e7;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header styling */
h1 {
    color: #f8fafc;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Header */
.nav-header {
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(39, 39, 42, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #e4e4e7;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: #e4e4e7;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.1) !important;
    border-color: rgba(248, 113, 113, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
}

/* ==========================================
   MESSAGE FEED PAGE STYLES
   ========================================== */

.feed-header-container {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
}

.feed-header {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.feed-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
}

.feed-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feed-subtitle {
    color: #a1a1aa;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Filter Controls */
.filter-controls-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.filter-controls-header {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    padding: 2rem;
}

.filter-controls-header h2 {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.filter-label {
    color: #e4e4e7;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-icon {
    font-size: 1rem;
}

.modern-select {
    background: rgba(39, 39, 42, 0.8);
    color: #f9fafb;
    border: 1px solid rgba(75, 85, 99, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.modern-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background-color: rgba(39, 39, 42, 1);
}

.modern-select:hover {
    border-color: rgba(156, 163, 175, 0.7);
    background-color: rgba(39, 39, 42, 0.9);
}

/* Message Feed Content */
.feed-content-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.message-feed {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    overflow: hidden;
    min-height: 400px;
}

/* Enhanced Pagination */
.pagination-wrapper {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
}

.pagination-container {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #a1a1aa;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 1rem;
}

.pagination-btn {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #f9fafb;
    border: 1px solid #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

.pagination-btn:disabled {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.btn-icon {
    font-size: 0.9rem;
}

/* Mobile responsive for message feed */
@media (max-width: 768px) {
    .feed-header-container,
    .filter-controls-container,
    .feed-content-container,
    .pagination-wrapper {
        padding: 0 1rem;
    }
    
    .feed-header {
        padding: 2rem 1.5rem;
    }
    
    .feed-header h1 {
        font-size: 2rem;
    }
    
    .filter-controls-header {
        padding: 1.5rem;
    }
    
    .filter-groups {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pagination-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .pagination-controls {
        justify-content: center;
        width: 100%;
    }
    
    .pagination-btn {
        flex: 1;
        justify-content: center;
        max-width: 140px;
    }
}

/* Main container */
#message-feed, #channel-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Filter container */
.filter-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(39, 39, 42, 0.5);
    margin-bottom: 2rem;
}

.filter-label {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.channel-filter-select {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #f9fafb;
    border: 1px solid #6b7280;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 12rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.channel-filter-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3), 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.channel-filter-select:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Utility classes */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    color: #a1a1aa;
    font-style: italic;
    font-size: 1.1rem;
    background: rgba(24, 24, 27, 0.3);
    border-radius: 0.75rem;
    margin: 1rem;
    border: 1px solid rgba(39, 39, 42, 0.3);
}

.loading::before {
    content: '⏳';
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #a1a1aa;
    font-size: 1.2rem;
    font-style: italic;
    background: rgba(24, 24, 27, 0.3);
    border-radius: 0.75rem;
    margin: 1rem;
    border: 1px solid rgba(39, 39, 42, 0.3);
}

.empty-state::before {
    content: '📭';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin: 1rem;
    border: 1px solid #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.success {
    background-color: #22c55e;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Message styling */
.message-item {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 0 1rem 1rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #60a5fa 0%, #a78bfa 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-item:hover {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(4px);
}

.message-item:hover::before {
    opacity: 1;
}

.message-header {
    color: #a1a1aa;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-header strong {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.message-text {
    color: #e4e4e7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-media {
    margin-top: 0.75rem;
}

.message-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #27272a;
}

.media-link {
    color: #60a5fa !important;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #1e293b;
    transition: background-color 0.2s ease;
}

.media-link:hover {
    background-color: #334155;
    text-decoration: none;
}

.media-error {
    color: #f87171;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Pagination styling */
.pagination-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #f9fafb;
    border: 1px solid #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    display: inline-block;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

.pagination-btn:disabled {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Special styling for the red cleanup button */
.pagination-btn[style*="background-color: #ef4444"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #dc2626;
}

.pagination-btn[style*="background-color: #ef4444"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #b91c1c;
}

.page-info {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 4rem;
    text-align: center;
}

.page-size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-control label {
    color: #e5e7eb;
    font-size: 0.9rem;
    white-space: nowrap;
}

.page-size-select {
    background-color: #374151;
    color: #f9fafb;
    border: 1px solid #4b5563;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 4rem;
}

.page-size-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* Modern input styling for tag inputs */
input[type="text"] {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(75, 85, 99, 0.6) 100%);
    border: 1px solid #6b7280;
    color: #f9fafb;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

input[type="text"]:hover {
    border-color: #9ca3af;
}

/* Tag input labels */
label[for*="tags-"] {
    color: #f1f5f9;
    font-weight: 600;
    margin-right: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Channel management specific styling */
h2 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading and empty states with better styling */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #a1a1aa;
    font-style: italic;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #a1a1aa;
    font-size: 1.2rem;
    font-style: italic;
    background: rgba(24, 24, 27, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(39, 39, 42, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    #message-feed, #channel-list {
        padding: 1rem 0.5rem;
    }
    
    .filter-container {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin: 1rem 0.5rem 2rem 0.5rem;
    }
    
    .filter-label {
        text-align: center;
    }
    
    .channel-filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .message-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .page-size-control {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-size-control label {
        text-align: center;
    }
    
    input[type="text"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

/* Smooth fade-in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item, .filter-container {
    animation: fadeIn 0.3s ease-out;
}

/* Subtle pulse animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dashboard Specific Styling */
.dashboard-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 0;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ==========================================
   CHANNEL GRID CONTAINER
   ========================================== */

.channel-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.channel-card {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 50px rgba(96, 165, 250, 0.1);
}

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

.channel-card-header {
    margin-bottom: 1.5rem;
}

.channel-card-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.channel-card-stats {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
}

.channel-card-tags {
    margin: 1.5rem 0;
}

.channel-card-tags input {
    width: 100%;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #f9fafb;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.channel-card-tags input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background: rgba(39, 39, 42, 1);
}

.channel-card-tags input::placeholder {
    color: #6b7280;
}

.channel-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.channel-card-actions button {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.channel-card-actions button:first-child {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

.channel-card-actions button:first-child:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.35);
}

.channel-card-actions button:last-child {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.channel-card-actions button:last-child:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

/* Mobile responsive for channel grid */
@media (max-width: 768px) {
    .channel-grid-container {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem 1rem;
        gap: 1.5rem;
    }
    
    .channel-card {
        padding: 1.5rem;
    }
    
    .channel-card-actions {
        flex-direction: column;
    }
    
    .channel-card-actions button {
        min-width: auto;
    }
}

/* ==========================================
   LOGIN PAGE STYLES
   ========================================== */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a0a1a 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #a1a1aa;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.5rem;
    color: #f9fafb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background: rgba(39, 39, 42, 1);
}

.input-group input::placeholder {
    color: #6b7280;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -5px rgba(96, 165, 250, 0.3);
}

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

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Login page mobile responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
}

/* ==========================================
   DASHBOARD STATS STYLES
   ========================================== */

.dashboard-stats-container {
    max-width: 1200px;
    margin: 2rem auto 3rem auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 12px 40px rgba(96, 165, 250, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    transform: scale(1.05);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.loading-card .stat-number {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .dashboard-stats-container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-content {
        flex: none;
    }
}

/* ==========================================
   CHANNEL MANAGEMENT CONTROLS
   ========================================== */

.controls-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.controls-header {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.controls-header h2 {
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.controls-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.clear-all-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.clear-all-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.clear-all-btn:active {
    transform: translateY(0);
}

.clear-icon {
    font-size: 1rem;
}

.sort-label {
    color: #a1a1aa;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
    background: rgba(39, 39, 42, 0.5);
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.sort-btn {
    background: transparent;
    color: #a1a1aa;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sort-btn:hover {
    color: #e4e4e7;
    background: rgba(75, 85, 99, 0.3);
}

.sort-btn.active {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

.sort-btn.active:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.35);
}

.sort-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sort-btn.active .sort-icon {
    transform: scale(1.1);
}

/* Mobile responsive for controls */
@media (max-width: 768px) {
    .controls-container {
        padding: 0 1rem;
    }
    
    .controls-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .controls-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .sort-controls {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .sort-buttons {
        justify-content: center;
    }
    
    .clear-all-btn {
        justify-content: center;
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sort-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .sort-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}
