/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    box-sizing: border-box;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.box {
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 48%;
    box-sizing: border-box;
    margin: 0 auto;
}

.language-select-container {
    text-align: left;
    margin-bottom: 10px;
}

.centered-button {
    text-align: center;
}

.centered-button a {
    display: inline-block;
    margin-top: 10px;
}

/* Typography */
h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 48%;
}

button:hover {
    background-color: #0056b3;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Utility Styles */
.response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background: #e9ecef;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
    max-height: 300px;
}

.url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.url-container input {
    flex-grow: 1;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    width: calc(100% - 80px);
}

#generatedUrl {
    outline: none;
    border: none;
}

.copy-button,
.copy-code-button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

.copy-button:hover,
.copy-code-button:hover {
    background-color: #218838;
}

/* Tab Styles */
.tab-container {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background: #f9f9f9;
    color: #333;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 5px;
}

.tab.active {
    background: #007BFF;
    color: white;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

/* Code Formatting */
pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.key {
    color: #d73a49;
}

.string {
    color: #032f62;
}

.number {
    color: #005cc5;
}

.boolean {
    color: #d73a49;
}

.null {
    color: #6f42c1;
}

/* Form Validation */
.error {
    color: #e74c3c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .box {
        width: 100%;
        margin-bottom: 20px;
    }

    .copy-code-button {
        margin-top: 10px;
        width: 100%;
    }
}

/* OFUSE */
.centered-button {
    text-align: center;
    margin: 20px;
}

.ofuse-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 10px;
    background-color: #ec9192;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
    background-image: url('https://ofuse.me/assets/images/icon_ofuse.png');
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 50px;
    background-size: 25px 25px;
    font-size: 16px;
}

.ofuse-button:hover {
    background-color: #d48183;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}