* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Metin seçimini engelle */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Sürükle-bırak işlemini engelle */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Input alanları ve butonlar için seçimi tekrar aktifleştir */
input, textarea, button, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #20232a 0%, #2c3e50 100%);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    box-shadow: 0 2px 15px rgba(44, 62, 80, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(52, 73, 94, 0.4);
}

.logo img{
    height: 5vh;
    filter: brightness(0) invert(1);
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #ffffff;
}

.header-nav span {
    color: #bdc3c7;
    font-weight: 500;
}

.header-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.logout-btn {
    background-color: #e74c3c;
    color: white !important;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.logout-btn:hover {
    background-color: #c0392b !important;
    border-color: rgba(192, 57, 43, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 20px;
    min-height: calc(100vh - 70px);
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.15);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #34495e);
}

.form-title {
    text-align: center;
    margin-bottom: 35px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(52, 73, 94, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background-color: #28a745;
}

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

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 2px;
    min-width: 70px;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #8B0000;
    color: white;
}

.btn-delete:hover {
    background-color: #660000;
}

/* Bulk Actions */
.bulk-actions {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.bulk-actions form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Checkbox Styles */
.user-checkbox, #select-all {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Table checkbox column */
.table th:first-child,
.table td:first-child {
    width: 40px;
    text-align: center;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(34, 153, 84, 0.05));
    color: #155724;
    border-left-color: #27ae60;
}

.alert-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    color: #721c24;
    border-left-color: #e74c3c;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Stream Container */
.stream-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 40px auto;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.1);
    position: relative;
}

/* Viewer Stream Tabs */
.viewer-stream-tabs {
    display: flex;
    background-color: #333;
    border-bottom: 2px solid #555;
}

.viewer-stream-tab {
    padding: 12px 20px;
    background-color: #444;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #555;
    font-weight: 500;
}

.viewer-stream-tab:hover {
    background-color: #555;
    color: white;
}

.viewer-stream-tab.active {
    background-color: #007bff;
    color: white;
}

.viewer-stream-tab:last-child {
    border-right: none;
}

/* Viewer Stream Content */
.viewer-stream-content {
    display: none;
    height: 600px;
    position: relative;
}

.viewer-stream-content.active {
    display: block;
}

/* Video.js player stilleri */
.viewer-stream-content .video-js {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.viewer-stream-content .vjs-big-play-button {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.8);
}

.viewer-stream-content .vjs-big-play-button:hover {
    background-color: rgba(220, 53, 69, 1);
}

.viewer-stream-content .vjs-control-bar {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Kontrol barında sadece temel butonları bırak */
.viewer-stream-content .vjs-current-time,
.viewer-stream-content .vjs-duration,
.viewer-stream-content .vjs-remaining-time,
.viewer-stream-content .vjs-time-divider,
.viewer-stream-content .vjs-progress-control,
.viewer-stream-content .vjs-live-control,
.viewer-stream-content .vjs-playback-rate,
.viewer-stream-content .vjs-subs-caps-button,
.viewer-stream-content .vjs-captions-button,
.viewer-stream-content .vjs-subtitles-button,
.viewer-stream-content .vjs-descriptions-button,
.viewer-stream-content .vjs-chapters-button,
.viewer-stream-content .vjs-audio-button,
.viewer-stream-content .vjs-text-track-settings,
.viewer-stream-content .vjs-picture-in-picture-control,
.viewer-stream-content .vjs-seek-to-live-control {
    display: none !important;
}

/* Native video UI ve tarayıcı overlay kontrollerini minimize et */
.viewer-stream-content video::-webkit-media-controls {
    display: none !important;
}

.viewer-stream-content video::-webkit-media-controls-enclosure {
    display: none !important;
}

.viewer-stream-content video::-webkit-media-controls-panel,
.viewer-stream-content video::-webkit-media-controls-play-button,
.viewer-stream-content video::-webkit-media-controls-timeline,
.viewer-stream-content video::-webkit-media-controls-current-time-display,
.viewer-stream-content video::-webkit-media-controls-time-remaining-display,
.viewer-stream-content video::-webkit-media-controls-mute-button,
.viewer-stream-content video::-webkit-media-controls-volume-slider,
.viewer-stream-content video::-webkit-media-controls-fullscreen-button,
.viewer-stream-content video::-webkit-media-controls-picture-in-picture-button,
.viewer-stream-content video::-webkit-media-controls-download-button,
.viewer-stream-content video::-webkit-media-controls-overflow-button,
.viewer-stream-content video::-webkit-media-controls-toggle-closed-captions-button,
.viewer-stream-content video::-webkit-media-controls-seek-back-button,
.viewer-stream-content video::-webkit-media-controls-seek-forward-button,
.viewer-stream-content video::-webkit-media-controls-rewind-button,
.viewer-stream-content video::-webkit-media-controls-return-to-realtime-button,
.viewer-stream-content video::-webkit-media-controls-volume-control-container,
.viewer-stream-content video::-webkit-media-controls-playback-rate-button {
    display: none !important;
}

.viewer-stream-content video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

.viewer-stream-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Stream Chat Layout */
.stream-chat-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: 1fr 380px; /* Chat alanını biraz genişlet */
    gap: 25px;
    align-items: start;
}

.stream-container {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.1);
    position: relative;
    margin: 0; /* Override previous margin */
    max-width: none; /* Override previous max-width */
    /* Maksimum koruma */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Ek güvenlik */
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

.chat-container {
    height: 600px; /* iframe ile aynı yükseklik */
    position: sticky;
    top: 90px; /* Account for header height */
}

/* Large desktop responsive */
@media (min-width: 1400px) {
    .stream-chat-wrapper {
        grid-template-columns: 1fr 400px; /* Çok büyük ekranlarda daha geniş chat */
        gap: 30px;
    }
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .stream-chat-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .chat-container {
        position: static;
        max-height: 400px;
    }
}

/* Stream Tabs */
.stream-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    overflow-x: auto;
}

.stream-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.stream-tab:hover {
    background-color: #e9ecef;
}

.stream-tab.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.stream-tab.add-tab {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.stream-tab.add-tab:hover {
    background-color: #218838;
}

.tab-name {
    font-weight: 500;
}

.tab-status {
    font-size: 18px;
    font-weight: bold;
}

.tab-status.active {
    color: #28a745;
}

.tab-status.inactive {
    color: #6c757d;
}

.stream-tab.active .tab-status.active {
    color: #90ee90;
}

.stream-tab.active .tab-status.inactive {
    color: #d3d3d3;
}

.stream-content {
    display: none;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 8px;
    margin-bottom: 20px;
}

.stream-content.active {
    display: block;
}

/* Admin Panel */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.08);
}

.admin-section h2 {
    margin-bottom: 20px;
    color: #212529;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
}

/* Search Container */
.search-container {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.search-container form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.search-container .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.search-container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Sponsors Section */
.sponsors-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.sponsors-section.main-sponsor-section {
    margin-bottom: 20px;
}

.sponsors-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #212529;
    text-shadow: none;
}

.sponsors-title.main-sponsor-title {
    font-size: 23px;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
}

.sponsors-title.main-sponsor-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 2px;
}

.sponsors-container {
    display: grid;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.12);
    border: 2px solid rgba(108, 117, 125, 0.2);
    justify-items: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sponsors-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 117, 125, 0.3), transparent);
}

.sponsors-container.regular-sponsors {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.sponsors-container.main-sponsor {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 350px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(248, 249, 250, 0.95), rgba(233, 236, 239, 0.9));
    border: 3px solid rgba(108, 117, 125, 0.3);
    box-shadow: 0 12px 30px rgba(108, 117, 125, 0.18);
    border-radius: 20px;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 30px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border: 2px solid rgba(108, 117, 125, 0.25);
    transition: all 0.4s ease;
    min-width: 180px;
    min-height: 120px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.1);
    position: relative;
    overflow: hidden;
}

.sponsor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(108, 117, 125, 0.2), rgba(108, 117, 125, 0.4), rgba(108, 117, 125, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.4);
    background: linear-gradient(145deg, #ffffff, #f1f3f4);
}

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

.sponsor-item.main-sponsor-item {
    min-width: 100px;
    min-height: 50px;
    padding: 10px 15px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 3px solid rgba(108, 117, 125, 0.4);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.15);
    border-radius: 16px;
    position: relative;
}

.sponsor-item.main-sponsor-item::before {
    height: 4px;
    background: linear-gradient(90deg, rgba(108, 117, 125, 0.3), rgba(108, 117, 125, 0.6), rgba(108, 117, 125, 0.3));
}


.sponsor-item.main-sponsor-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(108, 117, 125, 0.25);
    border-color: rgba(108, 117, 125, 0.6);
    background: linear-gradient(145deg, #ffffff, #f1f3f4);
}

.sponsor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sponsor-content.main-sponsor-content {
    gap: 12px;
}

.sponsor-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 0.5px;
}

.sponsor-name.main-sponsor-name {
    font-size: 24px;
    font-weight: 800;
    color: #1a252f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-tagline {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.sponsor-tagline.main-sponsor-tagline {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
}

.sponsor-description {
    font-size: 13px;
    color: #868e96;
    margin: 0;
    font-style: italic;
    text-align: center;
    max-width: 250px;
}

/* Sponsor Logo Styling */
.sponsor-item img,
.sponsor-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Main sponsor logo - slightly larger but not too big */
.main-sponsor-item img,
.main-sponsor-item .sponsor-logo {
    max-width: 180px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Links */
.link {
    color: #3498db;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.link:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 15px;
    }
    
    .stream-container {
        margin: 0 10px 30px 10px;
    }
    
    .sponsors-container {
        gap: 20px;
        padding: 15px;
    }
    
    .admin-section {
        padding: 25px;
        margin: 0 10px 25px 10px;
    }
    
    .form-container {
        margin: 30px 15px;
        max-width: 90%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .header {
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-nav {
        gap: 10px;
        font-size: 14px;
    }
    
    .header-nav span {
        display: none; /* "Hoş geldiniz" mesajını gizle */
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
        background-color: #e74c3c;
        border: 1px solid rgba(231, 76, 60, 0.3);
    }
    
    .logout-btn:hover {
        background-color: #c0392b !important;
    }

    .main-content {
        margin-top: 80px; /* Header yüksekliği için */
        padding: 10px;
    }
    
    .sponsors-section {
        margin-bottom: 20px;
    }
    
    .sponsors-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .sponsors-container {
        gap: 20px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .sponsors-container.regular-sponsors {
        grid-template-columns: 1fr 1fr;
        max-width: 500px;
        justify-items: center;
    }
    
    /* Center single remaining sponsor if odd number */
    .sponsors-container.regular-sponsors .sponsor-item:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .sponsors-container.main-sponsor {
        grid-template-columns: 1fr;
        max-width: 250px;
        border-radius: 16px;
    }
    
    .sponsor-item {
        width: 100%;
        min-width: 140px;
        max-width: 180px;
        min-height: 100px;
        padding: 18px 20px;
        box-sizing: border-box;
        border-radius: 10px;
    }
    
    .sponsor-item.main-sponsor-item {
        min-width: 200px;
        min-height: 110px;
        padding: 20px 25px;
    }
    
    /* Mobile logo sizes */
    .sponsor-item img,
    .sponsor-logo {
        max-width: 120px;
        max-height: 60px;
    }
    
    .main-sponsor-item img,
    .main-sponsor-item .sponsor-logo {
        max-width: 150px;
        max-height: 75px;
    }
    
    .sponsor-name {
        font-size: 16px;
    }
    
    .sponsor-name.main-sponsor-name {
        font-size: 20px;
    }
    
    .sponsor-tagline {
        font-size: 13px;
    }
    
    .sponsor-tagline.main-sponsor-tagline {
        font-size: 14px;
    }
    
.sponsor-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 40px;
    height: auto;
    object-fit: contain;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 40px;
    height: auto;
    object-fit: contain;
}

.sponsor-item .sponsor-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}    .stream-container {
        margin: 0 0 20px 0;
        border-radius: 8px;
    }
    
    .viewer-stream-tabs {
        flex-wrap: wrap;
        background-color: #444;
    }

    .viewer-stream-tab {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
        text-align: center;
        flex: 1;
        border-right: none;
        border-bottom: 1px solid #555;
    }
    
    .viewer-stream-tab:last-child {
        border-bottom: none;
    }

    .viewer-stream-content {
        height: 250px;
    }
    
    .viewer-stream-content iframe {
        border-radius: 0 0 8px 8px;
    }
    
    /* No stream message için mobil optimizasyon */
    #no-stream-message {
        padding: 20px;
        min-height: 250px !important;
        font-size: 16px !important;
    }
    
    #no-stream-message div:first-child {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    #no-stream-message div:last-child {
        font-size: 12px !important;
    }

    .form-container {
        margin: 20px 15px;
        padding: 30px 25px;
        max-width: calc(100% - 30px);
        border-radius: 15px;
    }
    
    .form-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
    }

    .admin-section {
        padding: 15px;
        margin: 0 0 20px 0;
        border-radius: 8px;
    }
    
    .admin-section h2 {
        font-size: 20px;
    }

    .table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
        min-width: 80px;
    }

    .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-small {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 60px;
    }

    .search-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .search-container form {
        flex-direction: column;
        gap: 10px;
    }

    .search-container .form-group {
        min-width: 100%;
    }

    .search-container div:last-child {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .search-container .btn {
        width: 100%;
    }

    .stream-tabs {
        flex-wrap: wrap;
        gap: 3px;
    }

    .stream-tab {
        padding: 6px 10px;
        font-size: 12px;
        min-width: auto;
        flex: 1;
    }
    
    .stream-content {
        padding: 15px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .header {
        padding: 8px 10px;
        justify-content: center;
        text-align: center;
    }
    
    .logo img {
        height: 4vh;
        filter: brightness(0) invert(1);
    }
    
    .main-content {
        margin-top: 70px;
        padding: 8px;
    }
    
    .sponsors-title {
        font-size: 18px;
    }
    
    .sponsors-container {
        padding: 15px;
        gap: 15px;
        border-radius: 10px;
    }
    
    .sponsors-container.regular-sponsors {
        grid-template-columns: 1fr 1fr;
        max-width: 320px;
        justify-items: center;
    }
    
    /* Center single remaining sponsor if odd number */
    .sponsors-container.regular-sponsors .sponsor-item:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .sponsors-container.main-sponsor {
        grid-template-columns: 1fr;
        max-width: 250px;
        border-radius: 14px;
    }
    
    .sponsor-item {
        padding: 12px 15px;
        min-width: 120px;
        max-width: 140px;
        min-height: 80px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
    }
    
    .sponsor-item.main-sponsor-item {
        min-width: 200px;
        min-height: 110px;
        padding: 20px 25px;
    }
    
    .sponsor-name {
        font-size: 14px;
    }
    
    .sponsor-name.main-sponsor-name {
        font-size: 18px;
    }
    
    .sponsor-tagline {
        font-size: 11px;
    }
    
    .sponsor-tagline.main-sponsor-tagline {
        font-size: 13px;
    }
    
    .sponsor-description {
        font-size: 11px;
    }
    
    /* Small mobile logo sizes */
    .sponsor-item img,
    .sponsor-logo {
        max-width: 100px;
        max-height: 50px;
    }
    
    .main-sponsor-item img,
    .main-sponsor-item .sponsor-logo {
        max-width: 130px;
        max-height: 65px;
    }
    
    .viewer-stream-content {
        height: 200px;
    }
    
    #no-stream-message {
        min-height: 200px !important;
        padding: 15px;
        font-size: 14px !important;
    }
    
    .form-container {
        margin: 15px 10px;
        padding: 25px 20px;
        border-radius: 12px;
        max-width: calc(100% - 20px);
    }
    
    .form-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .admin-section {
        padding: 12px;
    }
    
    .table {
        font-size: 11px;
    }
    
    .btn-small {
        padding: 3px 6px;
        font-size: 9px;
        min-width: 50px;
    }
}

/* Son giriş stili */
.last-login {
    color: #666;
    font-size: 0.9em;
}

.last-login.never {
    color: #999;
    font-style: italic;
}

/* User Status Alerts */
.user-status-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    min-width: 400px;
    max-width: 90vw;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: alertSlideIn 0.3s ease-out;
}

.user-status-alert.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.user-status-alert.critical {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.user-status-alert.connection-warning {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.alert-content {
    padding: 25px;
    text-align: center;
}

.alert-content h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.alert-content p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.alert-content small {
    font-size: 14px;
    opacity: 0.9;
    display: block;
    margin-bottom: 15px;
}

.alert-countdown {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
}

.alert-countdown span {
    font-size: 18px;
    color: #fff;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Success Alert */
.success-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease-out;
}

.success-alert .alert-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.success-alert .alert-content p {
    margin: 0;
    font-size: 14px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Alert Responsive */
@media (max-width: 768px) {
    .user-status-alert {
        min-width: 280px;
        max-width: calc(100vw - 20px);
        margin: 10px;
    }
    
    .alert-content {
        padding: 15px;
    }
    
    .alert-content h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .alert-content p {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .alert-content small {
        font-size: 12px;
    }
    
    .alert-countdown {
        padding: 8px;
        margin-top: 10px;
    }
    
    .alert-countdown span {
        font-size: 16px;
    }
    
    .success-alert {
        right: 5px;
        left: 5px;
        top: 10px;
        width: auto;
        padding: 15px;
    }
    
    .success-alert .alert-content h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .success-alert .alert-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .user-status-alert {
        min-width: 260px;
        margin: 5px;
    }
    
    .alert-content {
        padding: 12px;
    }
    
    .alert-content h4 {
        font-size: 15px;
    }
    
    .alert-content p {
        font-size: 13px;
    }
    
    .success-alert {
        padding: 12px;
    }
}

/* Stream Wrapper ve Hata Kontrolü */
.stream-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Stream Status Indicators */
.tab-status {
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
}

.tab-status.active {
    color: #28a745;
    animation: pulse 2s infinite;
}

.tab-status.inactive {
    color: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Stream Alert Messages */
.stream-status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease-out;
}

.stream-status-message.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.stream-status-message.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.stream-status-message.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.stream-wrapper iframe {
    width: 100%;
    height: 100%;
    display: none; /* Başlangıçta gizli */
}

.stream-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.stream-loading p {
    font-size: 16px;
    margin: 0;
}

.stream-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 6;
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.stream-error h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #ff6b6b;
}

.stream-error p {
    margin: 0 0 25px 0;
    font-size: 16px;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.4;
}

.retry-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.retry-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stream iframe güvenli görüntüleme */
.stream-wrapper iframe[style*="display: block"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Stream Protection System */
.stream-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Invisible Protection Layer */
.stream-protection-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.001);
    z-index: 8;
    pointer-events: none;
    cursor: default;
    /* Sadece seçimi ve sağ tık menüsünü engelle */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* DVD Screensaver Style Watermarks */
.watermark-user, .watermark-brand {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    z-index: 15;
    pointer-events: none;
    user-select: none;
    font-family: Arial, sans-serif;
    animation-duration: 40s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Tam ekran modunda filigranlar */
.viewer-stream-content:-webkit-full-screen .watermark-user,
.viewer-stream-content:-webkit-full-screen .watermark-brand,
.viewer-stream-content:-moz-full-screen .watermark-user,
.viewer-stream-content:-moz-full-screen .watermark-brand,
.viewer-stream-content:fullscreen .watermark-user,
.viewer-stream-content:fullscreen .watermark-brand {
    position: fixed !important;
    z-index: 2147483647 !important;
    font-size: 18px !important;
}

/* Kullanıcı adı filigranı - DVD bounce */
.watermark-user {
    animation-name: dvdBounce;
    animation-delay: 0s;
}

/* Marka filigranı - Farklı rota */
.watermark-brand {
    animation-name: dvdBounce2;
    animation-delay: -20s;
}



/* Watermark floating animation */
/* DVD Screensaver bounce animations */
@keyframes dvdBounce {
    0% {
        top: 10%;
        left: 10%;
        opacity: 0.6;
    }
    25% {
        top: 80%;
        left: 85%;
        opacity: 0.7;
    }
    50% {
        top: 20%;
        left: 15%;
        opacity: 0.6;
    }
    75% {
        top: 85%;
        left: 80%;
        opacity: 0.7;
    }
    100% {
        top: 10%;
        left: 10%;
        opacity: 0.6;
    }
}

@keyframes dvdBounce2 {
    0% {
        top: 85%;
        left: 80%;
        opacity: 0.5;
    }
    25% {
        top: 15%;
        left: 20%;
        opacity: 0.7;
    }
    50% {
        top: 75%;
        left: 85%;
        opacity: 0.6;
    }
    75% {
        top: 20%;
        left: 75%;
        opacity: 0.7;
    }
    100% {
        top: 85%;
        left: 80%;
        opacity: 0.5;
    }
}



/* Stream container position relative for overlays */
.viewer-stream-content {
    position: relative;
    display: none;
    /* Video capture koruması */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Mac ekran kaydı koruması */
    -webkit-app-region: no-drag;
    /* Content Security için */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.viewer-stream-content.active {
    display: block;
}

.viewer-stream-content iframe {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    /* Iframe koruma - tıklamaya izin ver */
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Gelişmiş Mac koruması */
    -webkit-app-region: no-drag;
    /* Capture koruması */
    image-rendering: pixelated;
    /* Context menu engelleme */
    -webkit-context-menu: none;
}

/* Ek koruma katmanı */
.additional-protection-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 20;
    pointer-events: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Mobile watermark adjustments */
@media (max-width: 768px) {
    .stream-watermark {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .stream-watermark {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

/* Responsive stream error */
@media (max-width: 768px) {
    .error-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .stream-error h3 {
        font-size: 20px;
    }
    
    .stream-error p {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .retry-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.stream-footer {
    background: linear-gradient(135deg, #20232a 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 1.5rem 0 0.5rem 0;
    margin-top: auto;
    position: relative;
    min-height: auto;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 12px;
    color: #bdc3c7;
    font-style: italic;
}

.footer-info {
    display: none; /* Hide additional info sections for cleaner single-screen view */
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 12px;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 0.8rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 12px;
    color: #95a5a6;
    order: 1;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #95a5a6;
    order: 2;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Single Screen Footer Optimization */
@media (min-width: 769px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .footer-copyright,
    .footer-credits {
        order: initial;
    }
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .stream-footer {
        padding: 1rem 0 0.3rem 0;
    }
    
    .footer-main {
        padding: 0 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-bottom {
        padding: 0.5rem 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .footer-copyright,
    .footer-credits {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stream-footer {
        padding: 0.8rem 0 0.2rem 0;
    }
    
    .footer-logo {
        height: 30px;
    }
    
    .footer-copyright,
    .footer-credits {
        font-size: 10px;
    }
}

/* Chat Styles - Füme Tonları */
.chat-container {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat container collapsed state */
.chat-container.collapsed {
    height: auto !important;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-header {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: #ecf0f1;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chat-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.chat-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.chat-content {
    display: flex;
    flex-direction: column;
    height: calc(600px - 60px); /* chat-header yüksekliğini çıkar */
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #34495e, #2c3e50);
}

.chat-content.collapsed {
    height: 0;
    overflow: hidden;
    background: none; /* Gizlendiğinde arkaplan kaldır */
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: linear-gradient(180deg, #2c3e50, #34495e);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    background: linear-gradient(145deg, #3a4a5c, #465669);
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.chat-message.own {
    background: linear-gradient(135deg, #5d6d7e, #707b8a);
    color: #ffffff;
    align-self: flex-end;
    max-width: 80%;
    border-left: 4px solid #85929e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-message.other {
    background: linear-gradient(145deg, #34495e, #3a4a5c);
    align-self: flex-start;
    max-width: 80%;
    border-left: 4px solid #7fb3d3;
    color: #ecf0f1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.9;
    gap: 10px;
}

.delete-message-btn {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
    min-width: 24px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-message-btn:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

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

.message-username {
    font-weight: 600;
    color: #7fb3d3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-message.own .message-username {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.message-time {
    font-size: 11px;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-input-container {
    padding: 15px 20px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chat-form-wrapper {
    display: flex;
    gap: 10px;
}

#message-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    backdrop-filter: blur(5px);
}

#message-input::placeholder {
    color: rgba(236, 240, 241, 0.7);
}

#message-input:focus {
    border-color: #7fb3d3;
    box-shadow: 0 0 0 3px rgba(127, 179, 211, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

#send-button {
    background: linear-gradient(135deg, #5d6d7e 0%, #707b8a 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #707b8a 0%, #85929e 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

#send-button:active {
    transform: translateY(0);
}

.chat-empty {
    text-align: center;
    color: rgba(236, 240, 241, 0.7);
    font-style: italic;
    padding: 40px 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-error-message {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    border-left: 4px solid #a93226;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Scrollbar styling for chat messages - Füme Tonları */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5d6d7e, #4a5568);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #707b8a, #5d6d7e);
}

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

/* Chat mobile responsive */
@media (max-width: 768px) {
    .stream-chat-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .chat-container {
        height: auto !important; /* Mobile'da sabit yükseklik olmasın */
        position: static;
        min-height: 300px;
        margin: 0 5px;
    }
    
    .chat-container.collapsed {
        height: auto !important;
        min-height: auto;
    }
    
    .chat-content {
        height: 300px;
    }
    
    .chat-content.collapsed {
        height: 0;
        background: none; /* Mobile'da da arkaplan gitsin */
    }
    
    .chat-message {
        max-width: 95%;
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-input-container {
        padding: 10px 15px;
    }
    
    .chat-form-wrapper {
        gap: 8px;
    }
    
    #message-input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #send-button {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .stream-chat-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .chat-container {
        height: 400px !important;
        position: static;
    }
    
    .chat-content {
        height: calc(400px - 60px);
    }
    
    .chat-container.collapsed {
        height: auto !important;
    }
    
    .chat-content.collapsed {
        height: 0;
        background: none;
    }
}

/* WhatsApp Support Button */
.support-button-container {
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    max-width: 1200px;
}

.whatsapp-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366 0%, #20b759 50%, #128c7e 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    min-width: 280px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    border-radius: 30px;
    pointer-events: none;
}

.whatsapp-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #28e072 0%, #23c766 50%, #15a085 100%);
    text-decoration: none;
    color: white;
}

.whatsapp-support-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    font-size: 18px;
    filter: brightness(1.1);
}

.support-text {
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .support-button-container {
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .whatsapp-support-btn {
        padding: 12px 24px;
        font-size: 13px;
        min-width: 260px;
        border-radius: 25px;
    }
    
    .support-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .support-button-container {
        padding: 0 10px;
    }
    
    .whatsapp-support-btn {
        min-width: 240px;
        padding: 10px 20px;
    }
    
    .support-text {
        display: none;
    }
    
    .whatsapp-support-btn::after {
        content: "Destek için tıklayın";
        margin-left: 5px;
        font-size: 12px;
    }
}

/* Program Schedule Section */
.program-schedule-section {
    margin: 25px auto;
    max-width: 900px;
    padding: 0 15px;
}

.program-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.program-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(52, 73, 94, 0.1);
}

.program-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.program-date {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.current-date {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 13px;
}

.program-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.program-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.program-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Program Item States */
.program-item.past {
    background: linear-gradient(135deg, rgba(149,165,166,0.1) 0%, rgba(127,140,141,0.05) 100%);
    border-left-color: #95a5a6;
    opacity: 0.7;
}

.program-item.current {
    background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(192,57,43,0.05) 100%);
    border-left-color: #e74c3c;
    animation: pulse 2s infinite;
}

.program-item.upcoming {
    background: linear-gradient(135deg, rgba(52,152,219,0.1) 0%, rgba(41,128,185,0.05) 100%);
    border-left-color: #3498db;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(231,76,60,0.2); }
    50% { box-shadow: 0 6px 25px rgba(231,76,60,0.4); }
    100% { box-shadow: 0 4px 20px rgba(231,76,60,0.2); }
}

.program-time {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(52,73,94,0.3);
}

.program-info {
    flex: 1;
}

.program-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.program-description {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.program-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.program-status.completed {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.program-status.live {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    animation: blink 1.5s infinite;
}

.program-status.upcoming {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.program-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(241,196,15,0.1) 0%, rgba(230,126,34,0.05) 100%);
    border-radius: 12px;
    border-left: 3px solid #f1c40f;
}

.note-icon {
    font-size: 18px;
    filter: brightness(1.2);
}

.note-content {
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.5;
}

.note-content strong {
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .program-schedule-section {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .program-container {
        padding: 15px;
        border-radius: 12px;
    }
    
    .program-title {
        font-size: 18px;
    }
    
    .program-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .program-time {
        align-self: flex-start;
        min-width: 60px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .program-name {
        font-size: 14px;
    }
    
    .program-description {
        font-size: 12px;
    }
    
    .program-note {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }
}

/* Compact Register Form */
.register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.password-section {
    margin-bottom: 25px;
}

.password-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Password Security Styles - Compact */
.password-requirements {
    padding: 15px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(41, 128, 185, 0.03));
    border-radius: 10px;
    border-left: 3px solid #3498db;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
}

.password-requirements small {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 11px;
}

.requirements-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.req-item {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
    white-space: nowrap;
}

#password-match-message {
    margin-top: 8px;
    min-height: 20px;
}

#registerBtn:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3) !important;
}

#registerBtn:disabled:hover {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    transform: none;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3) !important;
}

/* Mobile Compact Register Form */
@media (max-width: 768px) {
    .register-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .password-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .requirements-compact {
        justify-content: center;
        gap: 6px;
    }
    
    .req-item {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Modern Checkbox Styles */
.checkbox-group {
    margin: 25px 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    gap: 12px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    transform: translateX(2px);
}

.checkbox-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-icon:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    transform: scale(1.05);
}

.check-svg {
    width: 14px;
    height: 14px;
    fill: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
    box-shadow: 
        0 4px 12px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label .check-svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    flex: 1;
    color: #555;
    font-weight: 400;
    user-select: none;
}

.privacy-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.privacy-link:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.privacy-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.privacy-link:hover::after {
    width: 100%;
}

/* Checkbox focus state for accessibility */
.custom-checkbox input[type="checkbox"]:focus + .checkbox-label .checkbox-icon {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Disabled state */
.custom-checkbox input[type="checkbox"]:disabled + .checkbox-label {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-checkbox input[type="checkbox"]:disabled + .checkbox-label .checkbox-icon {
    background: #f8f9fa;
    border-color: #e9ecef;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h3 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.modal-body h4 {
    color: #34495e;
    margin: 20px 0 12px 0;
    font-size: 16px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #555;
}

.modal-footer {
    background: #f8f9fa;
    padding: 15px 25px;
    text-align: right;
    border-top: 1px solid #ecf0f1;
}

.modal-footer .btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .modal-body h3 {
        font-size: 16px;
    }
    
    .modal-body h4 {
        font-size: 14px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .password-requirements {
        padding: 12px;
        margin-top: 8px;
    }
    
    .requirements-compact {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .req-item {
        font-size: 10px;
        padding: 4px 8px;
        text-align: center;
        min-width: 100px;
    }
}

