/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY ================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

/* ================= LAYOUT ================= */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 240px;
    background: #020617;
    padding: 20px;
    border-right: 1px solid #1e293b;
}

.sidebar h2 {
    color: #22c55e;
    margin-bottom: 30px;
    font-size: 20px;
}

.sidebar a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #1e293b;
    color: #fff;
}

.sidebar a.active {
    background: #22c55e;
    color: #000;
}

/* ================= MAIN ================= */
.main {
    flex: 1;
    padding: 25px;
}

/* ================= HEADER ================= */
.header {
    margin-bottom: 20px;
}

.header h2 {
    font-size: 24px;
}

/* ================= GRID ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ================= CARD ================= */
.card {
    background: #020617;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    transition: 0.2s;
    flex:1;
}

.card:hover {
    transform: translateY(-3px);
}

/* ================= CARD TITLE ================= */
.card h3 {
    margin-bottom: 10px;
    color: #94a3b8;
}

.cards{
    display:flex; 
    gap:20px;
}

/* ================= TABLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

table th, table td {
    padding: 12px;
}

table th {
    background: #1e293b;
    text-align: left;
}

table tr {
    border-bottom: 1px solid #1e293b;
}

table tr:hover {
    background: #020617;
}

/* ================= BUTTON ================= */
.btn {
    padding: 8px 12px;
    background: #22c55e;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    opacity: 0.85;
}

/* ================= LINK ================= */
a {
    color: #22c55e;
}

/* ================= SCROLL ================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
#searchInput {
    background: #020617;
    border: 1px solid #1e293b;
    color: #fff;
}
/* ================= TOPBAR ================= */
.topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.topbar-right {
    background: #020617;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    font-size: 14px;
}

.topbar-right a {
    color: #22c55e;
    text-decoration: none;
}

.topbar-right a:hover {
    opacity: 0.8;
}
/* BUTTON */
.btn-add {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-add:hover {
    opacity: 0.9;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

/* MODAL BOX */
.modal-content {
    background: #0f172a;
    margin: 8% auto;
    padding: 25px;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    color: white;
    animation: fadeIn 0.3s ease;
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
}

/* CLOSE BUTTON */
.close {
    font-size: 22px;
    cursor: pointer;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #9ca3af;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #1e293b;
    color: white;
}

/* BUTTON SAVE */
.btn-save {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn-save:hover {
    opacity: 0.9;
}

/* ANIMATION */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.script-row {
    display: none;
    background: #0f172a;
}

.script-box {
    padding: 15px;
}

.script-box textarea {
    width: 100%;
    background: #020617;
    color: #22c55e;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
}

.btn-copy {
    margin-top: 10px;
    padding: 8px 14px;
    background: #22c55e;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}