@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
    margin: 0;
    padding: 0;
}

/* -----------------------------
   Theme: Light vs Dark
----------------------------- */

/* Light Theme */
body.light-theme {
    background-color: #fafafa;
    color: #262626;
}

/* Dark Theme */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

/* -----------------------------
   Navbar
----------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af, #515bd4);
    color: white;
    font-size: 22px;
    font-weight: 600;
    padding: 18px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* -----------------------------
   Container
----------------------------- */
body.light-theme .container {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.dark-theme .container {
    background: #1e1e1e;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 20px auto 20px;
    padding: 20px;
    border-radius: 12px;
}

.resultsContainer {
    display: none;
}

/* -----------------------------
   Typography
----------------------------- */
h1,
h2,
h3 {
    color: inherit;
}

h3 {
    color: #0095f6;
}

.instructions {
    padding: 20px 25px;
    border-left: 5px solid #0095f6;
    border-radius: 12px;
    margin-bottom: 30px;
    transition: background 0.3s ease;
}

.dark-theme .instructions {
    background: #1f1f1f;
    border-left-color: #f58529;
}

.instructions h3 {
    margin-top: 0;
    font-size: 20px;
    color: #0095f6;
    font-weight: 700;
    margin-bottom: 12px;
}

.dark-theme .instructions h3 {
    color: #f58529;
}

.instructions ol {
    padding-left: 20px;
    margin: 0;
}

.instructions ol li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
}


/* -----------------------------
   Code Section
----------------------------- */
body.light-theme .code-section {
    background-color: #f5f5f5;
    border: 1px solid #dbdbdb;
}

body.dark-theme .code-section {
    background-color: #1f1f1f;
    border: 1px solid #333;
}

.code-section {
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}

.code-section pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 10px;
    background: transparent;
    padding: 10px;
    border-radius: 6px;
}

/* -----------------------------
   Buttons
----------------------------- */
.insta-style-btn {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    height: fit-content;
    transition: background 0.2s ease;
    background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.insta-style-btn:hover {
    opacity: 0.9;
}

/* Buttons inside code section */
.code-section button {
    background-color: #0095f6;
    border-radius: 6px;
    margin-top: 10px;
}

.code-section button:hover {
    background-color: #0077c2;
}

/* File button */
.file-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #0095f6;
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.file-btn:hover {
    background-color: #0077c2;
}

#theme-toggle {
    position: absolute;
    right: 20px;
    z-index: 1100;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    height: 30px;
    width: 30px;
    line-height: 0;
    color: black;
}

body.light-theme #theme-toggle {
    background-color: white;
    color: black;
}

body.dark-theme #theme-toggle {
    background-color: #121212;
    color: white;
}

#theme-toggle:hover {
    transform: scale(1.05);
}



/* -----------------------------
   Inputs and Textareas
----------------------------- */
textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    resize: vertical;
}

body.light-theme textarea {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    color: #262626;
}

body.dark-theme textarea {
    background-color: #222;
    border: 1px solid #444;
    color: #e0e0e0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* -----------------------------
   Box
----------------------------- */
.box-container {
    display: flex;
    justify-content: space-around;
}

.box {
    margin-bottom: 20px;
    width: 100%;
    padding: 20px;
}

@media (max-width: 900px) {
    .box-container {
        flex-direction: column;
        align-items: center;
    }
}

/* -----------------------------
   Results
----------------------------- */
.results {
    margin-top: 30px;
}

body.light-theme .results pre {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    color: #222;
}

body.dark-theme .results pre {
    background-color: #1d1d1d;
    border: 1px solid #444;
    color: #e0e0e0;
}

.results pre {
    padding: 12px;
    border-radius: 6px;
    white-space: pre-wrap;
}

/* -----------------------------
   List Items
----------------------------- */
.results ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.results li {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

body.light-theme .results li {
    background: #efefef;
}

body.dark-theme .results li {
    background: #00000057;
}

.results li:hover {
    background: #ccc;
}

.results li a {
    text-decoration: none;
}

.results li a:link {
    color: #0095f6;
}

.results li a:visited {
    color: #8a3ab9;
}

body,
.container,
textarea,
.code-section,
.results pre,
.results li {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* -----------------------------
   warning
----------------------------- */
.warning {
    background-color: #fff4e5;
    border-left: 5px solid #f44336;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.dark-theme .warning {
    background-color: #2a1f1f;
    color: #ffcccc;
    border-left-color: #ff6b6b;
}

.warning h3 {
    margin-top: 0;
    color: #c62828;
    font-size: 18px;
}

.dark-theme .warning h3 {
    color: #ff5252;
}

.warning p {
    font-size: 15px;
    line-height: 1.6;
}

.warning ul {
    padding-left: 20px;
    margin-top: 10px;
}

.warning ul li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

/* -----------------------------
   footer
----------------------------- */
.site-footer {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  margin-top: 40px;
  background-color: #515cd40f;
}

.site-footer a {
  color: var(--accent-color, #0077cc);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
