*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;background:linear-gradient(180deg,#0b0f1e,#0f0f23);color:#e5e7eb;font-size:16px;line-height:1.5}
.wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px}
.card{width:100%;max-width:520px;background:#0b1020;border:1px solid #1f2937;border-radius:14px;padding:26px;box-shadow:0 12px 36px rgba(0,0,0,.5)}
h1{margin:0 0 14px;font-size:26px;color:#f97316}
.muted{color:#9ca3af}
.card.wide{max-width:980px}
.section-title{margin:22px 0 10px;color:#f97316;font-weight:700}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:12px 0}
.box{background:#0f1529;border:1px solid #27324a;border-radius:12px;padding:14px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.box span{display:block;color:#9ca3af;font-size:13px;margin-bottom:6px}
.form-row{margin:12px 0}
select,textarea,input[type=text]{width:100%;padding:12px;border-radius:10px;border:1px solid #27324a;background:#0f1529;color:#e5e7eb}
select:focus,textarea:focus,input[type=text]:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.25)}
::placeholder{color:#94a3b8}
textarea{min-height:140px}
h2{margin:0 0 10px;font-size:18px;color:#f97316}
button{width:100%;padding:12px;border-radius:10px;border:none;background:linear-gradient(180deg,#fca34a,#f97316);color:#111827;font-weight:800;cursor:pointer;transition:filter .15s ease}
button:hover{filter:brightness(1.05)}
/* Link renkleri - yüksek kontrast */
a{color:#f97316;text-decoration:none}
a:hover{color:#fb923c;text-decoration:underline}
h1{margin:0 0 12px;font-size:22px;color:#f97316}
.muted{color:#9ca3af;font-size:14px;margin:4px 0}
.alert{margin:12px 0;padding:12px;border-radius:8px;font-size:14px}
.alert.success{background:#062e12;color:#10b981;border:1px solid #065f46}
.alert.error{background:#3b0b0b;color:#ef4444;border:1px solid #7f1d1d}
.verify-form{margin-top:12px}
.row{margin:10px 0}
input[type=text],input[type=password],input[name=nickname]{width:100%;padding:10px;border-radius:8px;border:1px solid #374151;background:#0f172a;color:#e5e7eb}
.check{display:flex;align-items:center;gap:10px;margin:8px 0}
input[type=checkbox]{width:22px;height:22px;transform:scale(1.3);accent-color:#f97316;}
.check label{cursor:pointer;font-size:15px}
button{width:100%;padding:12px;border-radius:10px;border:none;background:#f97316;color:#111827;font-weight:700;cursor:pointer}
button[disabled]{opacity:.5;cursor:not-allowed}
.help{margin-top:8px;color:#9ca3af;font-size:12px}
footer{margin-top:14px;text-align:center;color:#9ca3af;font-size:12px}

/* ===== ADMIN PANEL SIDEBAR STYLES ===== */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2000;
    background: #f97316;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    height: 100vh;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1500;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    background: #1e3a8a;
    padding: 25px 20px;
    border-bottom: 3px solid #3b82f6;
    text-align: center;
}

.sidebar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    color: #e5e7eb;
    text-decoration: none;
    padding: 16px 25px;
    margin: 0;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    border-left: 4px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    border-left: 4px solid #f97316;
    transform: translateX(8px);
}

.nav-link.active {
    background: linear-gradient(90deg, #059669, #10b981);
    color: #ffffff;
    border-left: 4px solid #34d399;
    font-weight: 700;
}

.nav-link.logout {
    background: #dc2626;
    margin-top: 30px;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 8px;
    border-left: none;
}

.nav-link.logout:hover {
    background: #ef4444;
    transform: translateX(0);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Content Area */
.content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
    background: transparent;
    transition: margin-left 0.3s ease;
}

/* Sidebar Divider */
.sidebar hr {
    border: none;
    border-top: 2px solid #3b82f6;
    margin: 20px 25px;
    opacity: 0.6;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.admin-table th {
    background: #1e3a8a;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #374151;
    color: #e5e7eb;
}

.admin-table tr:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* Admin Buttons */
.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

.btn-info {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #60a5fa;
    transform: translateY(-1px);
}

.btn-primary {
    background: #f97316;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fb923c;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #9ca3af;
    transform: translateY(-1px);
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(55, 65, 81, 0.6);
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f97316;
    color: white;
    transform: translateY(-1px);
}

.pagination .current {
    background: #f97316;
    color: white;
    font-weight: 600;
}

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

.modal-content {
    background: #0b1020;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #1f2937;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 12px 36px rgba(0,0,0,.7);
    position: relative;
}

.modal h3 {
    color: #f97316;
    margin-top: 0;
    font-size: 20px;
}

.modal .close {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal .close:hover {
    color: #ef4444;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .content {
        margin-left: 240px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 80px 15px 20px 15px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .grid {
        gap: 10px;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table th, .admin-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 80px 10px 15px 10px;
    }
    
    .card {
        padding: 15px;
        border-radius: 8px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
}

@media (max-width: 768px) {
    .mobile-overlay.active {
        display: block;
    }
}

/* ===== BOT MANAGEMENT STYLES ===== */
/* Bot Card Buttons */
.bot-card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
}

.bot-card-buttons button,
.bot-card-buttons a {
    flex: 1;
    min-width: 80px;
    max-width: 100px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bot-card-buttons button:hover,
.bot-card-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Bot Status Indicators */
.bot-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.bot-status.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bot-status.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bot-status.unknown {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-actions .btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Bot Grid Improvements */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bot-card {
    background: #0f1529;
    border: 1px solid #27324a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    border-color: #f97316;
}

.bot-card h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #f97316;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-card h2::before {
    content: "🤖";
    font-size: 16px;
}

.bot-info {
    margin-bottom: 15px;
}

.bot-info p {
    margin: 6px 0;
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-info p strong {
    color: #e5e7eb;
    min-width: 80px;
}

/* Form Improvements */
.create-bot-form {
    background: #0f1529;
    border: 1px solid #27324a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.create-bot-form .section-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #f97316;
    font-size: 18px;
    font-weight: 600;
}

.create-bot-form .grid {
    gap: 15px;
}

.create-bot-form .box {
    background: #0b1020;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 15px;
}

.create-bot-form input {
    background: #0b1020;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.create-bot-form input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

.create-bot-form button[type="submit"] {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.create-bot-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}


