/* Main styles for Blox Fruits Script Hub Extension */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0e17;
    color: #ffffff;
    min-width: 800px;
    min-height: 600px;
}

.container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #1e2739;
    background-color: #11141d;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
    color: #4caf50;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: #1e2739;
}

.main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background-color: #11141d;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #1e2739;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #4caf50;
    font-size: 16px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: #b8c7dc;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: #1e2739;
    color: #ffffff;
}

.content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background-color: #0a0e17;
}

.panel {
    display: none;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.panel.active {
    display: block;
}

.search-bar {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: #1e2739;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #6c7a94;
}

.script-card {
    background-color: #11141d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #4caf50;
}

.script-card h3 {
    margin-bottom: 10px;
    color: #4caf50;
    font-size: 18px;
}

.script-card p {
    color: #b8c7dc;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.script-card .tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.script-card .tag {
    background-color: #2d374b;
    color: #b8c7dc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.script-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background-color: #3d8a40;
}

.btn-secondary {
    background-color: #2d374b;
}

.btn-secondary:hover {
    background-color: #3d4a66;
}

.code-block {
    background-color: #1e2739;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    position: relative;
    overflow-x: auto;
}

.code-block pre {
    color: #b8c7dc;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    font-size: 13px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2d374b;
    color: #b8c7dc;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1;
}

.copy-btn:hover {
    background-color: #3d4a66;
}

.tab-container {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    background-color: #1e2739;
    border: none;
    border-radius: 4px;
    color: #b8c7dc;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #4caf50;
    color: white;
}

.tab-content {
    display: none;
}

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

.tutorial-step {
    background-color: #11141d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.tutorial-step h4 {
    color: #4caf50;
    margin-bottom: 10px;
}

.tutorial-step p {
    color: #b8c7dc;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #11141d;
}

::-webkit-scrollbar-thumb {
    background: #2d374b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4a66;
}

/* Media queries for better display in tabs */
@media (min-width: 800px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
    
    .container {
        height: 100vh;
    }
}