/* Root Variables for Easy Customization */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --input-bg-color: #ffffff;
    --input-border-color: #ced4da;
    --button-bg-color: #007bff;
    --button-hover-bg-color: #0056b3;
    --error-bg-color: #f8d7da;
    --error-text-color: #721c24;
    --table-border-color: #dee2e6;
    --table-header-bg-color: #e9ecef;

    /* Additional Variables */
    --font-size-small: 12px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --line-height: 1.6;
    --font-family-body: 'Arial', sans-serif;
    --font-family-heading: 'Georgia', serif;
    --section-padding: 20px;
    --content-width: 1200px;
    --main-padding: 30px;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* Accessibility */
    --high-contrast-text: #000;
    --high-contrast-bg: #fff;

    /* Responsive Breakpoints */
    --breakpoint-small: 480px;
    --breakpoint-medium: 768px;
    --breakpoint-large: 1024px;
}

/* Dark Theme */
[data-theme='dark'] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --secondary-bg: #1f1f1f;
    --secondary-color: #1a1a1a;
    --light-bg: #181818;
    --secondary-text: #b0b0b0;
    --border-color: #444;
    --input-bg: #222;
    --input-bg-color: #222;
    --input-border-color: #444;
    --button-bg: #4a90e2;
    --button-bg-color: #4a90e2;
    --button-hover: #357abd;
    --button-hover-bg-color: #357abd;
    --link-color: #4a90e2;
    --link-hover: #337ab7;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --blur: none;
    --error-color: #ff6b6b;
    --error-bg-color: #ff6b6b;
    --error-text-color: #ffffff;
    --primary-color: #4a90e2;
    --accent-hover: #337ab7;
    --button-text: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --table-border-color: #444;
    --table-header-bg-color: #2a2a2a;
    --font-size-small: 12px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --line-height: 1.6;
    --font-family-body: 'Arial', sans-serif;
    --font-family-heading: 'Georgia', serif;
    --section-padding: 20px;
    --content-width: 1200px;
    --main-padding: 30px;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    --high-contrast-text: #ffffff;
    --high-contrast-bg: #000000;
}

/* Light Theme */
[data-theme='light'] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --secondary-bg: #f4f4f9;
    --secondary-color: #f4f4f9;
    --light-bg: #ffffff;
    --secondary-text: #666666;
    --border-color: #ccc;
    --input-bg: #f9f9f9;
    --input-bg-color: #f9f9f9;
    --input-border-color: #ced4da;
    --button-bg: linear-gradient(135deg, #4a90e2, #3671d8);
    --button-bg-color: #4a90e2;
    --button-hover: linear-gradient(135deg, #3b7acb, #2559a5);
    --button-hover-bg-color: #2559a5;
    --link-color: #4a90e2;
    --link-hover: #337ab7;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --blur: none;
    --error-color: #f44336;
    --error-bg-color: #f8d7da;
    --error-text-color: #721c24;
    --primary-color: #4a90e2;
    --accent-hover: #337ab7;
    --button-text: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --table-border-color: #dee2e6;
    --table-header-bg-color: #e9ecef;
    --font-size-small: 12px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --line-height: 1.6;
    --font-family-body: 'Arial', sans-serif;
    --font-family-heading: 'Georgia', serif;
    --section-padding: 20px;
    --content-width: 1200px;
    --main-padding: 30px;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --high-contrast-text: #000000;
    --high-contrast-bg: #ffffff;
}

/* Modern Theme */
[data-theme='modern'] {
    --bg-color: #1f1f1f;
    --text-color: #eaeaea;
    --secondary-bg: #242526;
    --secondary-color: #242526;
    --light-bg: #2b2d2f;
    --secondary-text: #e2e8f0;
    --border-color: rgba(255, 255, 255, 0.2);
    --input-bg: #292a2b;
    --input-bg-color: #292a2b;
    --input-border-color: rgba(255, 255, 255, 0.2);
    --button-bg: linear-gradient(45deg, #48bb78, #38a169);
    --button-bg-color: #48bb78;
    --button-hover: rgba(72, 187, 120, 0.6);
    --button-hover-bg-color: rgba(72, 187, 120, 0.6);
    --link-color: #4a90e2;
    --link-hover: #337ab7;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --blur: blur(10px);
    --error-color: #ff6b6b;
    --error-bg-color: #ff6b6b;
    --error-text-color: #ffffff;
    --primary-color: #4a90e2;
    --accent-hover: #337ab7;
    --button-text: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --table-border-color: rgba(255, 255, 255, 0.2);
    --table-header-bg-color: #2b2d2f;
    --font-size-small: 12px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --line-height: 1.6;
    --font-family-body: 'Arial', sans-serif;
    --font-family-heading: 'Georgia', serif;
    --section-padding: 20px;
    --content-width: 1200px;
    --main-padding: 30px;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    --high-contrast-text: #ffffff;
    --high-contrast-bg: #000000;
}

/* Fusion Theme */
[data-theme='fusion'] {
    --bg-color: linear-gradient(135deg, #1e1e2f, #3b3b5b);
    --text-color: #f0f0f0;
    --secondary-bg: rgba(255, 255, 255, 0.05);
    --secondary-color: rgba(255, 255, 255, 0.05);
    --light-bg: rgba(255, 255, 255, 0.1);
    --secondary-text: #cfcfcf;
    --border-color: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-bg-color: rgba(255, 255, 255, 0.1);
    --input-border-color: rgba(255, 255, 255, 0.2);
    --button-bg: linear-gradient(45deg, #9f7aea, #805ad5);
    --button-bg-color: #9f7aea;
    --button-hover: rgba(159, 122, 234, 0.6);
    --button-hover-bg-color: rgba(159, 122, 234, 0.6);
    --link-color: #9f7aea;
    --link-hover: #b794f4;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --blur: blur(12px);
    --error-color: #ff6b6b;
    --error-bg-color: #ff6b6b;
    --error-text-color: #ffffff;
    --primary-color: #9f7aea;
    --accent-hover: #805ad5;
    --button-text: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --table-border-color: rgba(255, 255, 255, 0.2);
    --table-header-bg-color: rgba(255, 255, 255, 0.1);
    --font-size-small: 12px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --line-height: 1.6;
    --font-family-body: 'Arial', sans-serif;
    --font-family-heading: 'Georgia', serif;
    --section-padding: 20px;
    --content-width: 1200px;
    --main-padding: 30px;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    --high-contrast-text: #ffffff;
    --high-contrast-bg: #000000;
}

/* Fabric Theme */
[data-theme='fabric'] {
    --bg-color: linear-gradient(135deg, #2d3748, #4a5568);
    --text-color: #ffffff;
    --secondary-bg: rgba(255, 255, 255, 0.1);
    --secondary-color: rgba(255, 255, 255, 0.1);
    --light-bg: rgba(255, 255, 255, 0.1);
    --secondary-text: #e2e8f0;
    --border-color: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.2);
    --input-bg-color: rgba(255, 255, 255, 0.2);
    --input-border-color: rgba(255, 255, 255, 0.2);
    --button-bg: linear-gradient(45deg, #48bb78, #38a169);
    --button-bg-color: #48bb78;
    --button-hover: rgba(72, 187, 120, 0.6);
    --button-hover-bg-color: rgba(72, 187, 120, 0.6);
    --link-color: #ffffff;
    --link-hover: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --blur: blur(10px);
    --error-color: #feb2b2;
    --error-bg-color: #feb2b2;
    --error-text-color: #ffffff;
    --primary-color: #48bb78;
    --accent-hover: #38a169;
    --button-text: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --table-border-color: rgba(255, 255, 255, 0.2);
    --table-header-bg-color: rgba(255, 255, 255, 0.1);
    --font-size-small: 12px;
    --font-size-medium: 16px;
    --font-size-large: 20px;
    --line-height: 1.6;
    --font-family-body: 'Arial', sans-serif;
    --font-family-heading: 'Georgia', serif;
    --section-padding: 20px;
    --content-width: 1200px;
    --main-padding: 30px;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    --high-contrast-text: #ffffff;
    --high-contrast-bg: #000000;
}
/* Prevent Flashing of Wrong Theme 
body {
    visibility: hidden;
}

[data-theme] body {
    visibility: visible;
} */

/* 🖥️ Full-Height Layout Without Overflow Issues */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevents horizontal scrolling */
    color: #e0e0ff;
    font-family: 'Courier New', monospace;
 /* Universal box-sizing reset */
*, *::before, *::after {
    box-sizing: border-box;
 
}

/* Main Content to Fill Remaining Space and Centered */
main {
    display: flex; /* Enables Flexbox layout */
    flex: 1; /* Takes up remaining vertical space */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    flex-direction: column;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

 

/* Apply .noscroll to the main container */
.noscroll {
    flex-grow: 1; /* Takes up available space */
    height: 100vh; /* Limit to viewport height */
 
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Prevents scrolling */
}

.sbs-container {
    display: flex;
    justify-content: space-between; /* Ensures spacing between elements */
    align-items: center; /* Aligns items vertically */
    gap: 20px; /* Adds spacing between elements */
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.sbs-box {
    flex: 1; /* Allows equal width distribution */
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    text-align: center;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}



/* Header */
header {
    background-color: var(--secondary-color);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-color);
}

header h1 {
    margin: 0;
    color: var(--primary-color);
}

/* Navigation Styles */
.main-nav, .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 16px; /* Slightly increased padding for touch targets */
    box-shadow: 0 4px 8px var(--shadow-color);
    position: relative; /* For mobile menu positioning */
}

.main-nav .logo, .admin-header .logo {
    font-size: 1.25rem; /* Slightly smaller for mobile */
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a, .admin-header a {
    color: var(--text-color);
    padding: 12px; /* Larger touch area */
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.2s ease;
}

.main-nav a:hover, .admin-header a:hover {
    color: var(--primary-color);
}

.main-nav .nav-left, .main-nav .nav-center, .main-nav .nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    flex-grow: 1;
    justify-content: center;
}

.dynamic-title {
    margin: 0;
    font-size: 1.25rem; /* Smaller for mobile */
    color: var(--primary-color);
}

/* Hamburger Menu for Mobile */
.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 12px;
}

/* Dropdown Styles */
.nav-right .dropdown {
    position: relative;
}

.nav-right .dropdown .dropbtn {
    background-color: #444;
    color: white;
    padding: 12px; /* Larger touch area */
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-right .dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #444;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 200px; /* Wider for mobile readability */
}

.nav-right .dropdown .dropdown-content a {
    color: white;
    padding: 12px 16px; /* Larger touch targets */
    text-decoration: none;
    display: block;
}

.nav-right .dropdown .dropdown-content a:hover {
    background-color: #555;
}

.nav-right .dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: block; /* Show hamburger menu */
        position: absolute;
        top: 12px;
        right: 16px;
    }

    .main-nav .nav-left, .main-nav .nav-center {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .main-nav .nav-right {
        display: none; /* Hidden by default */
        width: 100%;
        flex-direction: column;
        background-color: var(--secondary-color);
    }

    .main-nav .nav-right.active {
        display: flex; /* Show when active */
    }

    .main-nav a, .nav-right .dropdown .dropbtn {
        margin: 8px 0;
        display: block;
        text-align: center;
        width: 100%; /* Full-width for touch */
    }

    .nav-right .dropdown {
        width: 100%;
    }

    .nav-right .dropdown .dropdown-content {
        position: static; /* Stack dropdown items */
        box-shadow: none; /* Remove shadow for cleaner look */
        background-color: #555; /* Slightly different background */
    }

    .nav-right .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .nav-right .dropdown.active .dropdown-content {
        display: block; /* Show when active */
    }
}

 

/* Admin Sub-Navigation */
.admin-sub-nav {
    background-color: var(--secondary-color);
    padding: 10px 15px; /* Consistent padding on all sides */
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px var(--shadow-color);
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* Links in Sub-Navigation */
.admin-sub-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 20px; /* Adjusted for consistent vertical and horizontal spacing */
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex; /* Ensures alignment within flex container */
    align-items: center; /* Vertically centers text/icon */
}

.admin-sub-nav a:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Dropdown Menu Item */
.admin-menu-item {
    position: relative;
    padding: 0; /* Ensure no additional padding for dropdown container */
    margin: 0; /* Prevent unwanted vertical spacing */
}

/* Dropdown Menu Styling */
.admin-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 220px;
    z-index: 1;
    border-radius: 5px;
}

.admin-submenu a {
    display: block;
    padding: 10px 20px; /* Consistent padding inside dropdown links */
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.admin-submenu a:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Show Submenu on Hover */
.admin-menu-item:hover .admin-submenu {
    display: block;
}

/* Active Link Styling */
a.active {
    font-weight: bold;
    color: #f39c12;
}

a.active:hover {
    color: #f39c12;
}

/* Responsive Design - Smaller Screens */
@media (max-width: 768px) {
    .admin-sub-nav {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .admin-sub-nav a {
        width: 100%; /* Full width for better tap targets */
        text-align: center;
        font-size: 0.9rem; /* Adjust font size */
        padding: 10px 15px;
    }

    .admin-submenu {
        position: static; /* Change position for smaller screens */
        width: 100%;
        text-align: center;
    }

    .admin-menu-item:hover .admin-submenu {
        display: block;
        position: relative;
    }
}

/* Default: Hide the hamburger menu on large screens */
.hamburger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    position: absolute;
    top: 10px;
    right: 20px;
}

/* Adjust the navigation for small screens */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Show hamburger icon */
    }

    .admin-sub-nav {
        display: none; /* Hide the nav menu by default */
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        background-color: var(--secondary-color);
        position: absolute;
        top: 60px; /* Position it below the header */
        left: 0;
        right: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
    }

    .admin-sub-nav.show {
        display: flex; /* Show when active */
    }

    .admin-sub-nav a {
        display: block;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
    }

    /* Ensure submenu expands on smaller screens */
    .admin-submenu {
        position: relative;
        width: 100%;
        box-shadow: none;
    }

    .admin-menu-item:hover .admin-submenu {
        display: block;
    }
}



h1, h2, h3, p {
    text-align: center; /* Centers text horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
}


section {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin: 20px auto;
    max-width: 1000px;
    width: 100%; /* Ensures it doesn’t grow beyond max-width */
    overflow: hidden; /* Ensures nothing overflows */
    box-sizing: border-box; /* Ensures padding doesn’t add extra width */
}

section h2, section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

code, pre {
    background: var(--log-bg-color);
    color: var(--text-color);
    padding: 6px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.95em;
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid var(--border-color);
}


.security-measures { background: #e8f5e9; padding: 10px; border-left: 4px solid #4CAF50; }

/* Forms */
.admin-form {
    width: 100%; /* Ensures it doesn't exceed its parent */
    max-width: 320px; /* Limits form size */
    margin: 0 auto; /* Centers it inside container */
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--shadow-color);
    overflow: hidden; /* Prevents accidental overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.admin-form label {
    font-weight: bold;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.admin-form button {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.admin-form button:hover {
    background-color: var(--accent-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sub-nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* Style for log table */
.log-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    color: var(--text-color); /* Ensures text color adapts to theme */
    background-color: var(--bg-color); /* Adjust background to match theme */
}

.log-table thead tr {
    background-color: #f4f4f4;
    text-align: left;
    background-color: var(--secondary-color); /* Adapt for dark mode */
    color: var(--text-color);
}

.log-table th,
.log-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.log-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
    background-color: var(--table-row-even-bg);
    color: var(--text-color);
}

.log-table tbody tr:hover {
    background-color: #f1f1f1;
    background-color: var(--accent-hover);
    color: var(--text-color);
}

.log-table th {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.log-table td {
    word-break: break-word;
}

/* Additional styling for theme toggle */
#browser-toggle {
    font-size: 1.5em;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

#browser-toggle:hover {
    color: #357ab7; /* Change color on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Additional styling for theme toggle */
#theme-toggle {
    font-size: 1.5em;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover {
    color: #ffcc00; /* Change color on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Styling for logout button */
#logout-button {
    font-size: 1.5em;
    border: none;
    background: none;
    color: #fff; /* Adjust color based on theme */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

#logout-button:hover {
    color: #ff4d4d; /* Change to red on hover */
    transform: scale(1.1); /* Slight zoom effect */
}


#logout-button:hover {
    color: #ff4d4d; /* Change color on hover for better visibility */
}

/* Style for Gemini Chat Button */
.gemini-chat-button {
    width: 50px;
    height: 50px;
    padding: 2px;
    cursor: pointer;
}

/* Updated PHP Terminal Styling */
.php-terminal-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--bg-color), var(--secondary-color));
    box-shadow: 8px 8px 16px var(--shadow-color), -8px -8px 16px var(--border-color);
    color: var(--text-color);
    text-align: center;
}

/* Input Form */
.terminal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* PHP Input Field */
.php-input {
    width: 100%;
    max-width: 750px;
    height: 150px;
    padding: 15px;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #dcdcdc;
    border: 1px solid #444;
    font-family: "Courier New", monospace;
    resize: none; /* Prevent resizing */
    overflow: auto;
    box-sizing: border-box;
}

/* Run Button */
.php-run-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    transition: background 0.3s;
}

.php-run-btn:hover {
    background-color: #0056b3;
}

/* Output Box */
.php-output {
    margin-top: 20px;
    padding: 15px;
    background-color: #121212;
    color: #00ff00;
    font-family: "Courier New", monospace;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: auto;
    max-height: 200px;
}

/* Error Message */
.message-error {
    color: #ff4d4d;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .php-terminal-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .php-input {
        max-width: 100%;
    }

    .php-run-btn {
        max-width: 100%;
    }
}

.log-container {
    max-height: 400px;
    overflow-y: auto;
    background: var(--log-bg-color);
    padding: 15px;
    border: 1px solid #ddd;
    font-family: monospace;
    will-change: transform; /* Helps browsers optimize scrolling */
    contain: content; /* Limits the repaint area */
   word-wrap: break-word;
     overflow-wrap: break-word;
     transition: all 0.3s ease-in-out;
}
.logs-button {
   
    margin-top: 4px;
    padding: 0px;
}
.success-log {
    color: green;
    font-weight: bold;
}
.warning-log {
    color: orange;
    font-weight: bold;
}
.error-log {
    color: red;
    font-weight: bold;
}
.info-log {
    color: var(--log-info-color);
}

.ssh-terminal {
    max-width: 600px;
    margin: 0 auto;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: var(--text-color); /* Inherit from theme */
}

/* Form Elements */
.ssh-terminal form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Add space between fields */
}

.ssh-terminal input,
.ssh-terminal textarea {
    width: 100%; /* Ensure full width within the container */
    padding: 10px;
    margin: 0; /* Remove extra margins */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-family: "Arial", sans-serif; /* Ensure consistent font */
    box-sizing: border-box; /* Avoid overflow due to padding */
}
.ssh-terminal button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.ssh-terminal input {
    background: #333;
    color: #fff;
}

.ssh-terminal textarea {
    background: #121212;
    color: #00ff00;
    font-family: monospace;
    height: 200px;
    resize: none;
}

.ssh-terminal button {
    background: #007bff;
    color: white;
    cursor: pointer;
}

.ssh-terminal button:hover {
    background: #0056b3;
}

/* Success/Error Message */
.ssh-terminal .message {
    margin: 10px 0;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    background: #1a1a1a; /* Subtle background for contrast */
    color: #ff4d4d; /* Default for errors */
    text-align: center;
}

.ssh-terminal .message.success {
    color: green;
}

.ssh-terminal .message.error {
    color: red;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ssh-terminal {
        width: 90%; /* Adjust container width for small screens */
        padding: 15px;
    }

    .ssh-terminal button {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .ssh-terminal textarea[readonly] {
        height: 120px; /* Adjust height for smaller devices */
    }
}

/* Optimized Container layout */
.code-editor-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.code-editor-container.resizing {
    user-select: none;
    cursor: ew-resize;
}

/* Sidebar styling */
.code-editor-sidebar {
    width: 400px;
    min-width: 250px;
    max-width: 90vw;
    background-color: #f4f4f4;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease-in-out;
    padding-bottom: 10px; /* Avoid button clipping */
}

/* Fullscreen sidebar */
.code-editor-sidebar.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #1e1e1e;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.code-editor-sidebar.fullscreen .code-editor-content {
    height: calc(100% - 50px);
}

.code-editor-sidebar.fullscreen textarea {
    width: 100%;
    height: 90vh;
    font-size: 1.2rem;
}

.code-editor-sidebar.fullscreen + .code-editor-main-content {
    display: none;
}

/* Sidebar header styling */
.code-editor-header {
    background-color: #333;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Left and right icon groups */
    padding: 10px 20px;
}

/* Center the text */
.code-editor-header span {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

/* Grouping icons on the left and right */
.code-editor-icon-group {
    display: flex;
    align-items: center;
    gap: 5px; /* Adjust spacing between icons */
}

/* Specific styling for left and right groups */
.code-editor-icon-group.left {
    margin-right: auto; /* Push to left */
}

.code-editor-icon-group.right {
    margin-left: auto; /* Push to right */
}

/* Button styling for uniform look */
.code-editor-icon-group button {
    font-size: 24px; /* Adjust icon size */
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Hover effect for buttons */
.code-editor-icon-group button:hover {
    opacity: 0.8;
    transform: scale(1.1);
}


.code-editor-run {
    margin: 20px;
    padding: 15px 30px;
    font-size: 18px;
    background-color: #333;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
}

.code-editor-run button:hover {
    background-color: #555;
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.tab-bar {
    display: flex;
    justify-content: flex-start;
    background: #222;
    padding: 5px;
}

.tab {
    background: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    margin-right: 5px;
}

.tab.active {
    background: #555;
}

#addTabBtn {
    background: #444;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.workspace {
    display: none;
    flex-direction: row;
}

.workspace.active {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-editor-sidebar {
        width: 100%;
        max-width: 100%;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1000;
    }

    .code-editor-container {
        flex-direction: column;
    }

    .code-editor-header {
        flex-direction: row;
        justify-content: space-between;
    }

    .code-editor-icon-group {
        justify-content: center;
        gap: 8px; /* Reduce gap for smaller screens */
    }
}

/* Sidebar content */
.code-editor-content {
    flex-grow: 1;
    padding: 15px;
    color: #333;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

/* Resize handle */
.code-editor-resize-handle {
    width: 10px;
    height: 100%;
    background: #ccc;
    cursor: ew-resize;
    position: absolute;
    top: 0;
    right: 0;
}

/* Main content */
.code-editor-main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
    overflow: auto;
    transition: margin-left 0.2s ease-in-out;
}

.code-editor-content .CodeMirror {
    height: 100% !important;
    margin-left: -20px; /* Moves it 20px to the left */
    padding-left: 0; /* Removes any existing padding */
}

/* Iframe styling for code preview */
.code-editor-preview {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    background-color: #fff;
}




@media (max-width: 768px) {
    .code-editor-sidebar {
        width: 100%;
        max-width: 100%;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1000;
    }
    .code-editor-container {
        flex-direction: column;
    }

    .code-editor-icon-group {
        justify-content: center; /* Center buttons on smaller screens */
        gap: 10px; /* Reduce gap for better fit */
    }
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

/* Global scrollbar track */
::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
}

/* Global scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--scrollbar-thumb-start), var(--scrollbar-thumb-end));
    border-radius: 4px;
    border: 1px solid var(--scrollbar-border);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Hover effect for scrollbar */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--scrollbar-hover-start), var(--scrollbar-hover-end));
    border: 1px solid var(--scrollbar-hover-border);
}

/* Dark Mode Styling */
[data-theme="dark"] {
    --scrollbar-track-bg: #333;
    --scrollbar-thumb-start: #555;
    --scrollbar-thumb-end: #777;
    --scrollbar-border: #444;
    --scrollbar-hover-start: #777;
    --scrollbar-hover-end: #999;
    --scrollbar-hover-border: #666;
}

/* Light Mode Styling */
[data-theme="light"] {
    --scrollbar-track-bg: #f0f0f0;
    --scrollbar-thumb-start: #aaa;
    --scrollbar-thumb-end: #ccc;
    --scrollbar-border: #bbb;
    --scrollbar-hover-start: #ccc;
    --scrollbar-hover-end: #ddd;
    --scrollbar-hover-border: #ccc;
}

/* Specific sections (logs, terminals, etc.) */
.scrollable {
    max-height: none;  /* Allow section to expand naturally */
    overflow: visible; /* No scrolling on the outer section */
    border: 1px solid var(--border-color);
    padding: 15px;
    font-family: monospace;
}

/* General container for the CSS builder tool */
.css-builder-container {
    display: flex;
    height: 100vh; /* Full viewport height */
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

/* Sidebar for CSS controls */
.css-builder-sidebar {
    width: 300px; /* Fixed width for visibility */
    height: 100vh;
    background: #f4f4f4;
    padding: 20px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    position: relative; /* Ensures it stays in place */
}

/* Styling for control and output sections */
.css-builder-controls {
    flex: 1;
    max-width: 400px;
    overflow-y: auto; /* Scrollable if needed */
} 

.css-builder-output {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-basis: 100%;
    margin-top: 20px;
}

/* Main content (Preview + CSS Output) */
.css-builder-content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    flex: 1;
}

/* Sample content preview box */
.css-builder-preview-box {
    text-align: center;
    align-items: center;
    width: 45%;
    height: 250px;
    display: flex;
    flex: 2;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Label styling to enhance form usability */
.css-builder-label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Input field styling */
.css-builder-textarea {
    width: 100%;
    height: 150px;
    font-family: monospace;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    resize: none;
}

/* Button styling for actions */
.css-builder-button {
    margin-top: 10px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.css-builder-button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .css-builder-container {
        flex-direction: column;
    }

    .css-builder-sidebar {
        width: 100%; /* Make sidebar full width for mobile */
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .css-builder-content {
        flex-direction: column;
    }
}

 




 


/* Notepad container */
.notepad-container {
    display: flex;
    height: 90vh;
    margin: 20px;
    gap: 20px;
}

.notepad-sidebar {
    width: 300px;
    background: #f4f4f4;
    padding: 20px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.notepad-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#notesList {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

#notesList li {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: pointer;
}

/* Note editor styles */
.notepad-editor {
    flex-grow: 1;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

/* Fixed size for textarea */
#noteContent {
    resize: none; /* Disable the resize handle */
    width: 100%;
    height: 400px;
    padding: 15px;
    margin: 5px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notepad-container {
        flex-direction: column;
    }
    
    .notepad-sidebar {
        width: 100%;
        border-right: none;
    }
    
    .notepad-editor {
        padding: 10px;
    }
}

/* General container for all admin tools */
.tool-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tables */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tool-table th, .tool-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.tool-table th {
    background: #f4f4f4;
}

/* Buttons */
.tool-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.tool-btn.primary {
    background: #007bff;
    color: white;
}

.tool-btn.danger {
    background: #dc3545;
    color: white;
}

.tool-btn:hover {
    opacity: 0.8;
}

/* Form Styling */
.tool-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.tool-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.tool-form input,
.tool-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Action buttons inside table */
.tool-table td .action-buttons {
    display: flex;
    gap: 5px;
}

/* Sidebar (If used for navigation or options) */
.tool-sidebar {
    width: 300px;
    background: #f4f4f4;
    padding: 15px;
    border-right: 1px solid #ddd;
}

.tool-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: 10px;
    }
    
    .tool-sidebar {
        width: 100%;
        border-right: none;
        margin-bottom: 15px;
    }
}

/* 🔹 SQL Terminal Styles - Inside admin.css */

/* Ensure content stays centered */
.sql-terminal main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    margin: auto; /* Ensures it is centered properly */
}

/* 🎛 Form Styling */
.sql-terminal form {
    width: 100%;
    max-width: 700px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}



.form-group {
    margin-bottom: 15px;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border: 1px solid #ddd; text-align: left; }
th { background-color: #f4f4f4; }

.sql-terminal select,
.sql-terminal textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 14px;
}

/* Fix query box width */
.sql-terminal textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 120px; /* Fixed height */
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    resize: none; /* Disables resizing completely */
    overflow-y: auto; /* Allows vertical scrolling if needed */
}

/* 📜 Terminal-Style Output */
.sql-terminal-output {
    background: black;
    color: limegreen;
    font-family: monospace;
    padding: 10px;
    width: 100%;
    max-width: 700px;
    height: 300px;
    overflow-y: auto;
    border-radius: 5px;
    margin-top: 20px;
    text-align: left;
    box-sizing: border-box;
    white-space: pre-wrap; /* Prevents text from causing sideways scrolling */
}

/* Make sure table adjusts properly */
.sql-terminal table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin-top: 10px;
    background: #282c34;
    color: white;
    overflow-x: hidden;
}

/* Prevent section from exceeding page width */
.sql-results {
    width: 100%;
    max-width: 700px;
    overflow-x: hidden;
}

.sql-results h2 {
    text-align: center;
    margin-bottom: 10px;
    overflow-x: hidden;
}

.sql-terminal th, .sql-terminal td {
    border: 1px solid #555;
    padding: 8px;
    text-align: left;
    word-wrap: break-word;
}

.sql-terminal th {
    background: #444;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .sql-terminal {
        padding: 10px;
        width: 95%;
    }

    .sql-terminal-output {
        width: 95%;
    }

    .sql-terminal form {
        width: 95%;
    }

    .sql-terminal table {
        width: 95%;
    }
}

/* 🔄 Login Form Styling */

/* 🔹 Target Only Login Form Labels */
.login-form-container label {
    font-weight: bold;
    color: var(--text-color);
    display: block;
    margin-bottom: 6px; /* Add spacing below labels */
}


.login-form-container input {
    width: 100%;
    height: 42px; /* Slightly taller for better UI */
    padding: 10px;
    margin-bottom: 14px; /* Add spacing between fields */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

/* ✨ Fix Input Hover & Focus */
.login-form-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0px 0px 6px rgba(95, 168, 211, 0.6);
}


.login-form-container button {
    width: 100%;
    padding: 14px;
    margin-top: 8px; /* Add spacing above button */
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* 🔄 Button Hover */
.login-form-container button:hover {
    background: var(--accent-hover);
}

/* ⚠️ Error Message Styling (Login Specific) */
.login-form-container .error-message {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 15px;
}


/* 📢 Modal for Alerts */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--light-bg);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* 🌓 Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: var(--button-hover);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Terminal Container */
.cmd-terminal-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    background: var(--terminal-bg);
    box-shadow: 8px 8px 16px var(--shadow-color), -8px -8px 16px var(--border-color);
    color: var(--terminal-text);
    text-align: center;
}

/* Sidebar Container */
.sidebar-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--secondary-color);
    box-shadow: 4px 0 10px var(--shadow-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}


/* Sidebar Open */
.sidebar-container.open {
    transform: translateX(0);
}

/* Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: -40px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: background 0.3s;
}

.sidebar-toggle:hover {
    background: var(--accent-hover);
}

/* Search Bar */
.sidebar-search {
    margin: 10px 0;
}

.sidebar-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text-color);
}

/* Terminal Links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.sidebar-btn {
    display: block;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.sidebar-btn:hover {
    background: var(--accent-hover);
}
/* Input Form */
.terminal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Command Input Field */
.cmd-input {
    width: 100%;
    max-width: 750px;
    height: 150px;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    font-family: "Courier New", monospace;
    resize: none; /* Prevent resizing */
    overflow: auto;
    box-sizing: border-box;
}

/* Run Button */
.cmd-run-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    transition: background 0.3s;
}

.cmd-run-btn:hover {
    background-color: var(--accent-hover);
}

/* Output Box */
.cmd-output {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--terminal-bg);
    color: var(--output-text);
    font-family: "Courier New", monospace;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: auto;
    max-height: 200px;
}

/* Error Message */
.message-error {
    color: #ff4d4d;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .cmd-terminal-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .cmd-input {
        max-width: 100%;
    }

    .cmd-run-btn {
        max-width: 100%;
    }
}
/* Responsive Behavior */
@media (max-width: 768px) {
    .sidebar-container {
        width: 220px;
    }
}

/* 🌐 Server Status Widget */
#server-status-widget {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* 🔴 Server Status Items */
.server-item {
    background: #333;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.3s ease-in-out;
}

/* ✅ Good Status (Online, Fast Response) */
.server-item.online {
    border-left: 4px solid limegreen;
    background: #223322;
}

/* ⚠️ Warning Status (Slow Response) */
.server-item.slow {
    border-left: 4px solid orange;
    background: #332211;
}

/* ❌ Critical Status (Offline, High Latency) */
.server-item.offline {
    border-left: 4px solid red;
    background: #331111;
}

/* ⏳ Response Time Styling */
.server-item .response-time {
    font-size: 11px;
    color: #ccc;
}

/* 📍 Location Styling */
.server-item .location {
    font-size: 11px;
    color: #aaa;
}

/* 🔄 Placeholder for Missing Data */
.server-item .missing-data {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* 🎯 Hover Effect */
.server-item:hover {
    background: #444;
}

/* 🔽 Adjustments for Different Devices */
@media (min-width: 768px) {
    #server-status-widget {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    #server-status-widget {
        max-width: 100%;
    }
}

.admin-sidebar {
    width: 250px;
    height: 100vh;
    background: var(--secondary-color);
    color: var(--text-color);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    border-right: 1px solid var(--border-color);
}

/* Sidebar Header */
.sidebar-header {
    text-align: center;
    padding: 10px;
    font-size: 1.2em;
    font-weight: bold;
    background: var(--button-bg);
    color: var(--button-text);
}

/* Ensure the search area does not interfere with bottom nav */
#fileSearch {
    padding: 8px;
    width: calc(100% - 20px);
    margin: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    border-radius: 4px;
}

#fileResults {
    list-style: none;
    margin: 0;
    padding: 10px;
}

/* Push navigation to the bottom */
.sidebar-bottom-nav {
    margin-top: auto;
    padding-bottom: 15px;
}

/* Push navigation to the bottom */
.sidebar-bottom-nav {
    margin-top: auto;
    padding-bottom: 15px;
}

.sidebar-bottom-nav ul li {
    display: block;
}

.sidebar-bottom-nav ul li a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.95em;
    transition: background 0.3s, color 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-bottom-nav ul li a:hover {
    background: var(--button-hover);
    color: var(--button-text);
}

/* Submenu */
.has-submenu > a {
    cursor: pointer;
    position: relative;
}

.has-submenu > a::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.has-submenu.open > a::after {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: var(--light-bg);
    padding-left: 10px;
}

.has-submenu.open .submenu {
    display: block;
}

.submenu li a {
    font-size: 0.9em;
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 200px;
    }
    
    .sidebar-header {
        font-size: 1em;
    }

    .sidebar-bottom-nav ul li a {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

.tools-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tools-container th, .tools-container td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.tools-container th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.tools-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tools-container tr:hover {
    background-color: #f1f1f1;
}

button {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #357ab7;
}
 
.favicon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}
 

    .left-column, .center-column, .right-column {
        width: 100%;
        padding: 15px;
    }
 
    /* Responsive Design */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }

    .dashboard {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .log-entry {
      font-size: 0.85rem;
      padding: 0.5rem;
      word-break: break-word;
    }
  
    .log-time {
      font-weight: bold;
      font-size: 0.95rem;
    }
  

  }

  
  }
  
  