/*
-------------------------------------------
Bot Protection Standalone
Version: 1.0.0

Author: Olaf Schneider
Website: https://blockyoubots.com
Description: CSS Styles for Bot Protection Standalone Admin Panel.
-------------------------------------------
*/

/* ==== Header ==== */ 

/* ==== Header ==== */ 

body {
font-family: sans-serif;
background: #f1f1f1;
margin-top: auto;
margin: 0;
padding: 0;
}
.nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5em;
padding: 1em 2em;
background: #2c3e50;
}

.nav a {
color: #ecf0f1;
text-decoration: none;
font-weight: bold;
padding: 0.5em 1em;
border-radius: 8px;
transition: background 0.3s, box-shadow 0.3s;
}

.nav a:hover {
background-color: #34495e;
box-shadow: 0 0 10px #1abc9c;
}

.nav a.active {
background-color: #1abc9c;
color: #fff;
box-shadow: 0 0 8px #16a085;
}
a {
  text-decoration: underline;
}
/* ==== Custom Scrollbar für Webkit-Browser ==== */
::-webkit-scrollbar {
  width: 12px; /* Breite des Scrollbalkens einstellbar */
  height: 12px; /* für horizontale Scrollleisten */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Hintergrund der Spur */
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1); /* dezenter Schatten */
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #1abc9c; /* deine Hauptfarbe */
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3); /* innerer Schatten für Tiefe */
}

::-webkit-scrollbar-thumb:hover {
  background: #16a085; /* dunklere Farbe beim Hover */
}

/* ==== Firefox Scrollbar (ab Version 64) ==== */
html {
  scrollbar-width: thin; /* "auto" oder "thin" */
  scrollbar-color: #1abc9c #f1f1f1; /* Daumen und Spur */
}
.scroll-button {
  position: fixed;
  right: 20px;
  background-color: #1abc9c;
  color: white;
  border: 2px solid #333333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: none; /* wird per JS eingeblendet */
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
  z-index: 9999;
}

#scrollUpBtn {
  bottom: 80px; /* Abstand vom unteren Rand */
}

#scrollDownBtn {
  bottom: 20px;
}

.scroll-button:hover {
  background-color: #16a085;
  transform: scale(1.1);
}

html { 
scrollbar-gutter: stable; 
}
/* ==== login.php ==== */

.login-container {
max-width: 450px;
margin: 80px auto;
padding: 30px;
background: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* ==== unbekannt ==== */
.settings-container {
max-width: 850px;
margin: 80px auto;
padding: 30px;
background: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.toggle-switch {
display: flex;
justify-content: center; /* Zentriert den Inhalt horizontal */
align-items: center;  /* Zentriert den Inhalt vertikal (optional) */
gap: 40px;/* Abstand zwischen Elementen */
margin: 10px auto;/* zentriert das ganze div selbst */
}
.switch-label {
font-weight: bold;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 32px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
background-color: #ccc;
border-radius: 32px;
top: 0;
left: 0;
right: 0;
bottom: 0;
transition: 0.4s;
}
.slider:before {
position: absolute;
content: "";
height: 24px;
width: 24px;
left: 4px;
bottom: 4px;
background-color: white;
border-radius: 50%;
transition: 0.4s;
}
input:checked + .slider {
background-color: #4CAF50;
}
input:checked + .slider:before {
transform: translateX(28px);
}
h1 {
text-align: center;
color: #2c3e50;
}

form label {
display: block;
margin-top: 15px;
font-weight: bold;
}

form input {
width: 100%;
padding: 10px;
margin-top: 5px;
box-sizing: border-box;
}

button {
margin-top: 20px;
width: 100%;
padding: 10px;
background: #5d8191;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

button:hover {
background: #8a98ab;
}

.error {
background: #ffe0e0;
color: #a00;
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
text-align: center;
}

.reset-link {
text-align: center;
margin-top: 15px;
}
.success {
background: #e0ffe0;
color: #006600;
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
text-align: center;
}

/* ==== Admin Dashboard Layout ==== */

.topbar {
display: flex;
justify-content: space-between;
align-items: center;
background: #2c3e50;
padding: 10px 20px;
color: white;
}
.topbar h1 {
margin: 0;
font-size: 20px;
}
.topbar .user {
font-size: 14px;
}

.content {
padding: 20px;
background: white;
border-radius: 6px;
box-shadow: 0 0 5px #ccc;
}

.header {
padding: 10px;
text-align: center;
background: #059ED0;
color: white;
font-size: 10px;
}

/* ==== visitors.php ==== */  

.table-container {
margin-top: 20px;
overflow-x: auto;
}
.bp-table-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 5px;
  margin-bottom: 20px;
}

.centered-table-wrapper {
  overflow-x: auto;
}

.bp-table {
  width: 100%;
  border-collapse: collapse;
}

.bp-table th, .bp-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.bp-table th {
  background-color: #f0f0f0;
}

.bp-table {
width: 100%;
border-collapse: collapse;
background: #fff;
border: 1px solid #ccc;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
border-radius: 6px;
overflow: hidden;
}


.bp-table td {
padding: 14px 18px;
text-align: left;
border-bottom: 1px solid #eee;
line-height: 1.6;
font-size: 16px;
}

.bp-table th {
background: #5d8191;
color: #ffffff
font-weight: 600;
}

.bp-table tr:hover {
background-color: #f0f8ff;
}

.text-right {
text-align: right;
}

.muted {
color: #888;
font-style: italic;
}

/* ==== Blockierte Bots ==== */  

.form-inline {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 20px;
}

.form-inline input {
flex: 1;
padding: 8px;
}

.simple-list {
list-style: none;
padding-left: 0;
}

.simple-list li {
padding: 6px 0;
border-bottom: 1px solid #eee;
}

.simple-list a {
margin-left: 10px;
color: red;
text-decoration: none;
}

.log-output {
background: #f4f4f4;
padding: 10px;
border: 1px solid #ccc;
max-height: 300px;
overflow: auto;
font-size: 13px;
line-height: 1.4;
}
.b-button {
width: 100%;
background: #3498db;
color: white;
padding: 10px 16px;
font-size: 15px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 12px;
text-align: center;
align-items: center;
}

button:hover, .button:hover {
background: #2980b9;
}

/* ==== Dashboard ==== */ 

.stat-grid {
display: flex;
gap: 20px;
margin-top: 20px;
flex-wrap: wrap;
}

.stat-box {
background: #f4f8fb;
border: 1px solid #ccc;
border-radius: 6px;
padding: 20px;
flex: 1;
min-width: 200px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-box h3 {
margin-top: 0;
font-size: 16px;
color: #333;
}

.stat-box p {
font-size: 28px;
font-weight: bold;
margin: 10px 0 0;
}
.stat-grid {
display: flex;
gap: 20px;
flex-wrap: wrap;
margin: 20px 0;
}

.stat-box {
background: #f4f4f4;
padding: 16px;
border: 1px solid #ccc;
border-radius: 8px;
flex: 1;
min-width: 200px;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-box h3 {
margin: 0 0 10px;
font-size: 16px;
color: #444;
}

.stat-box p {
font-size: 28px;
margin: 0;
font-weight: bold;
}

.log-output {
background: #f8f8f8;
border: 1px solid #ccc;
padding: 10px;
max-height: 300px;
overflow-y: auto;
font-family: monospace;
font-size: 13px;
}

/* ==== Whitelist ==== */

.bot-info-table,
.bot-limit-table,
.whitelist-table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.bot-info-table th,
.bot-limit-table th,
.whitelist-table th,
.bot-info-table td,
.bot-limit-table td,
.whitelist-table td {
border: 1px solid #ccc;
padding: 8px;
text-align: left;
}
.b-button {
background: #3498db;
color: white;
padding: 8px 14px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.b-button:hover {
background: #2980b9;
}
.topbar {
background-color: #1abc9c;
color: white;
padding: 1em 2em;
display: flex;
justify-content: space-between;
align-items: center;
}

.topbar h1 {
margin: 0;
}

.user {
font-size: 0.95em;
}

/* ==== Bot-Info ==== */

.bot-info-table td, .bot-info-table th {
border: 1px solid #ddd;
padding: 80px;
}
.bot-info-table tr:nth-child(even) {
background-color: #f9f9f9;
}
.bot-info-table tr:hover {
background-color: #f1f1f1;
}
.bot-info-table th {
background-color: #5d8191;
color: white;
}

/* ====  IP-Verwaltung ==== */

input[type="text"] {
padding: 6px 10px;
border: 1px solid #ccc;
border-radius: 6px;
margin-right: 10px;
}

button {
background-color: #2196f3;
color: white;
padding: 8px 14px;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: background-color 0.3s ease;
}

button:hover {
background-color: #1976d2;
}

form.ip-form {
margin-top: 20px;
margin-bottom: 30px;
}

ul {
list-style: none;
padding-left: 0;
}

ul li {
background: #fafafa;
border: 1px solid #ddd;
margin-bottom: 6px;
padding: 6px 10px;
border-radius: 6px;
}

/* ====  dashboard.php ==== */

.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-top: 20px;
}
.stat-box {
border-radius: 10px;
padding: 20px;
color: white;
font-size: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
text-align: center;
}
.green { background: #28a745; }
.red   { background: #dc3545; }
.blue  { background: #007bff; }
.orange { background: #fd7e14; }
.info  { font-size: 14px; margin-top: 5px; color: #666; text-align: center; }
.tabs { margin-top: 30px; display: flex; gap: 10px; }
.tabs button {
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
background: #436472;
}
.tabs button.active {
background: #578294;
font-weight: bold;
}
.tab-content { display: none; margin-top: 20px; }
.tab-content.active { display: block; }

/* ====  visitors.php ==== */

.calendar-nav {
display: flex;
justify-content: space-between;
margin: 20px 0;
}
.calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 6px;
}
.day,
.day-header {
padding: 8px;
border-radius: 6px;
background: #f9f9f9;
border: 1px solid #ccc;
}

.day.today {
border: 2px solid #007bff;
}

.day.visited {
background: #e6f4ff;
}

.day.reminder {
background: #fff3cd;
border-color: #f0ad4e;
}

.day-header {
background: #e0e0e0;
font-weight: bold;
text-align: center;
}

.calendar a {
text-decoration: none;
color: inherit;
}

.day-number {
font-weight: bold;
}

.visitor-count,
.events-list {
font-size: 12px;
margin-top: 4px;
}

.events-list div {
margin-bottom: 2px;
}

.detail-box {
margin-top: 20px;
padding: 15px;
background: #f1f1f1;
border-left: 5px solid #007bff;
}

.form-inline {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}

.form-inline input[type=text],
.form-inline input[type=time] {
flex: 1;
min-width: 140px;
padding: 6px;
}

.form-inline label {
display: flex;
align-items: center;
gap: 4px;
}

.form-inline button {
padding: 6px 12px;
background: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}

.delete-btn {
color: red;
font-weight: bold;
border: none;
background: none;
cursor: pointer;
}

/* ====  ip_control.php ==== */

.container {
max-width: 950px;
margin: 20px auto;
padding: 20px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* ====  visitors.php ==== */
.container-visitors {
max-width: 950px;
margin: 20px auto;
padding: 20px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.exploit-visitors {
    max-width: 1100px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 5px solid #5d8191;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    font-family: sans-serif;
}

.exploit-visitors h3 {
    color: #5d8191;
    text-align: center;
    margin-bottom: 15px;
}

.exploit-visitors label {
    display: block;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
}

.exploit-visitors input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.exploit-visitors button {
    background: #5d8191;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.exploit-visitors button:hover {
    background: #436472;
}
h2,
h3 {
margin-top: 0;
}

.card {
padding: 16px;
background: #faf7f7;
border-radius: 8px;
margin-bottom: 20px;
}

button,
input[type=text],
input[type=number] {
padding: 6px 10px;
font-size: 14px;
border-radius: 4px;
border: 1px solid #ccc;
margin: 4px 0;
}

button {
cursor: pointer;
}

form.inline {
display: inline;
}

ul {
padding-left: 20px;
}

.success {
background: #d4edda;
padding: 10px;
border-radius: 6px;
color: #155724;
margin-bottom: 10px;
}

.error {
background: #f8d7da;
padding: 10px;
border-radius: 6px;
color: #721c24;
margin-bottom: 10px;
}

/* ====  bot_info.php ==== */

#status-message {
position: fixed;
top: 200px;
left: 50%;
transform: translateX(-50%);
background: #2ecc71;
color: white;
padding: 10px 20px;
border-radius: 8px;
font-weight: bold;
display: none;
z-index: 1000;
}

/* ==== footer.php ==== */ 

.footer {
background-color: #1abc9c;
height:50px;
margin-top: 0px; 
border: 1px solid #83f7e0;
padding: 1rem;
display: flex;
align-items: center;
justify-content: center;
}
/* ==== Exploit-settings ==== */ 

.exploit-settings {
    max-width: 600px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 5px solid #5d8191;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    font-family: sans-serif;
}

.exploit-settings h3 {
    color: #5d8191;
    text-align: center;
    margin-bottom: 15px;
}

.exploit-settings label {
    display: block;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
}

.exploit-settings input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.exploit-settings button {
    background: #5d8191;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.exploit-settings button:hover {
    background: #436472;
}
.exploit-bots {
    max-width: 900px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 5px solid #5d8191;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    font-family: sans-serif;
}

.exploit-bots h3 {
    color: #5d8191;
    text-align: center;
    margin-bottom: 15px;
}

.exploit-bots label {
    display: block;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
}

.exploit-bots input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.exploit-bots button {
    background: #5d8191;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.exploit-bots button:hover {
    background: #436472;
}

.info-box {
    background: #f9fbfd;
    border: 2px solid #5d8191;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto;
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
    max-width: 700px;
}

.info-box:hover {
    background: #eef2f5;
    border-color: #3f6173;
}

.info-content {
    display: none;
    margin-top: 12px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    text-align: left;
}

.info-content.active {
    display: block;
}
/* ====  exploit_log.php ==== */
.card-exploit {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-exploit h3 {
    margin-top: 0;
    color: #c0392b;
    text-align: center;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 82vh;
}
a {
text-decoration: none;        /* kein Unterstrich */
}

a:hover {
text-decoration: none;   /* Unterstrich beim Hover */

}
.desc-header {
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    user-select: none;
}
.desc-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.text-higher {
    position: relative;
    top: -13px;
}
.button-darkblue {
    display: inline-block;
    background-color: #436472; /* Dunkelblau */
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    width: 200px;
    height: 40px;
    line-height: 40px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.button-darkblue:hover {
    background-color: #6594a8;
    text-decoration: none;
}
.bot-table-wrapper {
    max-width: 1000px; /* oder gewünschte Breite */
    width: 95%;
    margin: 0 auto;
}

.bot-info-table {
    width: 100%;
    table-layout: fixed; /* gleiche Spaltenbreiten */
    border-collapse: collapse;
}

.bot-info-table th,
.bot-info-table td {
    padding: 8px;
    text-align: left;
    word-wrap: break-word;
}

.clickable-bot {
    cursor: pointer;
    color: #0078d7;
}

.clickable-bot:hover {
    text-decoration: underline;
}

#status-message {
    display: none;
    color: white;
    padding: 8px;
    margin: 10px auto;
    max-width: 600px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}
.fade-message {
    padding: 10px;
    margin: 15px 0;
    border-radius: 6px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
.success-msg {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error-msg {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
}
.fade-message {
    padding: 12px 15px;
    margin: 15px auto;
    max-width: 500px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
.success-msg {
    background: #2e7d32; /* sattes Grün */
}
.error-msg {
    background: #c62828; /* sattes Rot */
}
/* Tabellen-Styling Bot Protection Admin */
.table-centered {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-centered th {
    text-align: center;
    background: #5d8191;
    color: white;
    padding: 15px;
}

.table-centered td {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    padding-left: 50px; /* Abstand vom linken Tabellenrand */
}
/* ip_control.php */
.scroll-box {
  max-height: 250px;
  overflow-y: auto;
  background: #fff9f9;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.scroll-box ul {
  margin: 0;
  padding-left: 20px;
}
.scroll-box li {
  line-height: 1.6;
  font-family: monospace;
}
/* whitelist.php */
.scroll-box-table {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  background: #fff;
}

.scroll-box-table table {
  width: 100%;
  border-collapse: collapse;
}

.scroll-box-table th, .scroll-box-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.scroll-box-table tr:last-child td {
  border-bottom: none;
}
