:root {
    --bg-color: #0a192f;
    --text-color: #ccd6f6;
    --accent-color: #64ffda;
    --card-bg: #112240;
    --gap-size: 1rem;
    --header-height: 60px;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.glowing-header {
    height: var(--header-height);
    border-bottom: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.2);
}

.main-content {
    flex: 1;
    padding: 1rem;
    height: calc(100vh - var(--header-height));
    overflow: auto;
}

.box-container {
    display: flex;
    gap: var(--gap-size);
    height: 100%;
    width: 100%;
    min-height: 0;
    min-width: 0;
}

.vertical-layout {
    flex-direction: column;
    height: auto;
    min-height: 100%;
    padding-bottom: 2rem;
}

.horizontal-layout {
    flex-direction: row;
}

.body-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.body-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    z-index: -1;
    background: linear-gradient(
        45deg,
        rgba(100, 255, 218, 0.4),
        rgba(100, 255, 218, 0.1),
        rgba(100, 255, 218, 0.4)
    );
    filter: blur(15px);
    opacity: 0.7;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.scroll-y { overflow-y: auto; }
.scroll-x { overflow-x: auto; }
.wrap { flex-wrap: wrap; }

@media (max-width: 768px) {
    .horizontal-layout {
        flex-direction: column;
    }
    .main-content {
        overflow-x: hidden;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    margin: 1rem 0;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.6;
    margin: 0.75rem 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

ul, ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

ul {
    list-style: none;
}

ul li::before {
    content: "•";
    color: var(--accent-color);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

ol {
    counter-reset: item;
}

ol li {
    counter-increment: item;
}

ol li::before {
    content: counter(item) ".";
    color: var(--accent-color);
    margin-right: 0.5rem;
}

button {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

input, textarea, select {
    background: var(--bg-color);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 5px;
    width: 100%;
    margin: 0.5rem 0;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364ffda'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.img-full {
    width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: 50%;
}

.img-border {
    border: 2px solid var(--accent-color);
    padding: 0.3rem;
}

.img-glow {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

th {
    background-color: var(--card-bg);
    color: var(--accent-color);
}

tr:hover {
    background-color: rgba(100, 255, 218, 0.05);
}

blockquote {
    border-left: 3px solid var(--accent-color);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 0 5px 5px 0;
}

pre {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: monospace;
    color: var(--accent-color);
    background: rgba(100, 255, 218, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

strong, b {
    color: var(--accent-color);
    font-weight: 700;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(100, 255, 218, 0.2);
    margin: 1.5rem 0;
}

.body-card .box-container {
    height: 100%;
    overflow: visible;
}

button:not(.disabled) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

.clickable-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.clickable-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

.card-interactive {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.25);
}

.link-glow {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.link-glow:hover {
    transform: translateY(-1px);
}

.link-glow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-glow:hover::after {
    transform: scaleX(1);
}

.icon-interactive {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.icon-interactive:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
}

select {
    background: var(--card-bg);
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 0.75rem 2rem 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.2);
}

select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(17, 34, 64, 0.5);
    border-radius: 3px;
    margin: 0.25rem 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="range"]:active {
    background: var(--card-bg);
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(100, 255, 218, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(100, 255, 218, 0.3);
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(100, 255, 218, 0.4);
}

input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(100, 255, 218, 0.4);
}

input[type="range"]:active::-webkit-slider-thumb {
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.8);
}

input[type="range"]:active::-moz-range-thumb {
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.8);
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin: 0.25rem 0;
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="radio"]:checked {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.6);
}

input[type="radio"]:hover {
    transform: scale(1.1);
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.6);
}

input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    color: var(--card-bg);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

label:has(input[type="range"]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.form-group {
    margin: 1.5rem 0;
}

.form-title {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea {
    background: var(--bg-color) !important;
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover {
    border-color: var(--accent-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
    border-color: var(--accent-color);
    background: var(--bg-color) !important;
}

::placeholder {
    color: rgba(204, 214, 246, 0.5) !important;
    font-style: italic;
}

.range-container {
    position: relative;
    margin: 0.5rem 0;
}

.range-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    object-fit: cover;
}

.img-downscaled {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
}

.img-contain {
    object-fit: contain;
}

.img-small {
    max-width: 150px;
    max-height: 150px;
}

.img-medium {
    max-width: 300px;
    max-height: 200px;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link span {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}
