/* --- TEMEL AYARLAR --- */
:root {
    --primary: #E50914;           /* Kırmızı */
    --bg-color: #141414;          /* Koyu Arka Plan */
    --card-bg: #1f1f1f;           /* Kutu Rengi */
    --text-color: #ffffff;        /* Yazı Rengi */
    --input-bg: #2b2b2b;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* --- 1. MENÜ ALANI (BEYAZ VE BUTONLU) --- */
.admin-header {
    background-color: #ffffff !important;
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    text-align: center;
}

.admin-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-item {
    background-color: #f1f1f1;
    color: #333 !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-item.active {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

.nav-item.logout {
    background-color: #fff;
    border-color: #E50914;
    color: #E50914 !important;
}
.nav-item.logout:hover {
    background-color: #E50914;
    color: #fff !important;
}

/* --- 2. ORTALANMIŞ İÇERİK KUTUSU --- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    padding-bottom: 50px;
}

.content-box {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.page-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary);
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ccc; font-size: 13px; font-weight: 600; }
.form-control { width: 100%; padding: 12px; background-color: var(--input-bg); border: 1px solid #444; border-radius: 6px; color: #fff; font-size: 14px; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--primary); background-color: #333; }

.btn-save {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    display: block;
}
.btn-save:hover { background-color: #b00610; }

.login-wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 100%; max-width: 400px; background: var(--card-bg); padding: 40px; border-radius: 10px; text-align: center; border: 1px solid #333; box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

.alert { padding: 15px; background: #4caf50; color: white; text-align: center; border-radius: 6px; margin-bottom: 20px; }
.alert-error { background: #f44336; }

/* --- YENİ EKLENEN STİLLER (Buketler & Linkler) --- */

/* Xtream Codes Kartı */
.credentials-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}
.cred-title { font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.cred-row { display: flex; align-items: center; margin-bottom: 10px; background: #222; padding: 10px; border-radius: 4px; }
.cred-label { width: 120px; font-weight: bold; color: #ccc; font-size: 13px; }
.cred-val { flex: 1; color: #fff; font-family: monospace; font-size: 14px; word-break: break-all; }
.copy-icon { cursor: pointer; color: #E50914; margin-left: 10px; transition: 0.2s; }
.copy-icon:hover { color: #fff; transform: scale(1.1); }

/* M3U Link Kutuları */
.link-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}
.link-text {
    flex: 1;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 24px;
}
.copy-btn-small {
    background: #333;
    border: none;
    border-left: 1px solid #444;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn-small:hover { background: #E50914; }

/* Buket Kartları (Yeni Renkli Stil) */
.bouquet-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}
.bouquet-name { font-size: 13px; font-weight: 600; color: #fff; }
.bouquet-check { display: none; } /* Checkbox'ı gizle */
.status-icon { font-size: 18px; }

/* Aktif (Yeşil) */
.bouquet-active {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}
.bouquet-active .status-icon { color: #2ecc71; }

/* Pasif (Kırmızı) */
.bouquet-passive {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    opacity: 0.7;
}
.bouquet-passive .status-icon { color: #e74c3c; }

.bouquet-card:hover { transform: translateY(-2px); }