:root {
    --bg-light: #f0f2f5;
    --bg-accent: #c9d6ff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-hover: #9189ff;
    --border-light: #dfe6e9;
    --border-hover: #b2bec3;
    --white: #ffffff;
    --off-white: #fcfcfc;
    --gray-light: #f8f8f8;
    --gray-header: #eeeeee;
    --scroll-thumb: #b1b1b1;
    --scroll-hover: #d1d1d1;
    --shadow-primary: rgba(108, 92, 231, 0.3);
    --shadow-primary-hover: rgba(108, 92, 231, 0.4);
    --shadow-focus: rgba(108, 92, 231, 0.1);
    --shadow-subtle: rgba(0, 0, 0, 0.05);
}

* {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.3s all ease;
    
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 10px;
    border: 2px solid var(--bg-accent);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-hover);
}

::-webkit-scrollbar-thumb:active {
    background: var(--scroll-thumb);
}

@media (max-width: 1100px) {
    body {
        zoom: 0.85;
    }
}

@media (max-width: 600px) {
    body {
        zoom: 0.7;
        padding-top: 20px;
    }
}

body {
    background: linear-gradient(to right, var(--bg-light), var(--bg-accent));
    background-attachment: fixed;
    color: var(--text-main);
    justify-content: center;
    padding-top: 50px;
    min-height: 100vh;
}

.cont {
    margin-left: 70px;
    margin-bottom: 100px;
    margin-right: 70px;
    width: fit-content;
    scrollbar-gutter: stable;
}

h1 {
    font-size: 45px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
    width: fit-content;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

div {
    font-size: 20px;
    margin-bottom: 1px;
    display: block;
}

p {
    font-size: 20px;
    margin-bottom: 1px;
    display: inline;
}

button, input {
    vertical-align: middle;
}

button {
    cursor: pointer;
    border: none;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    transition: all 0.3s ease;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 2px;
    width: auto;
    height: 35px;
    margin-top: 2px;
    border-radius: 6px;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

button:hover {
    box-shadow: 0 6px 20px var(--shadow-primary-hover);
    filter: brightness(1.1);
}

button:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

input:not([type="checkbox"]):not([type="radio"]) {
    height: 36px;
    width: 400px;
    padding-bottom: 2px;
    padding-right: 4px;
    font-size: 16px;
    border: 1px solid var(--border-light);
    padding-left: 10px;
    transition: all 0.3s ease;
    margin-top: 2px;
    border-radius: 6px;
    background-color: var(--off-white);
}

input:hover {
    border-color: var(--border-hover);
}

input:not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--shadow-focus);
}

input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: var(--border-light) 2px solid;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}

input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    background-color: var(--white);
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s ease;
    position: relative;
}

input[type="radio"]:checked {
    border-color: var(--primary);
}

input[type="radio"]:checked::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

canvas {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background-color: var(--white);
    margin: 5px;
    box-shadow: 0 4px 10px var(--shadow-subtle);
}

::selection {
    color: var(--white);
    background-color: var(--primary);
}

li {
    margin-left: 20px;
    list-style-type: none;
    position: relative;
    padding-left: 5px;
}

li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

select {
    height: 36px;
    width: auto;
    font-size: 20px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    transition: all 0.3s ease;
    margin-top: 2px;
    cursor: pointer;
    background-color: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

select:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px var(--shadow-subtle);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow-focus);
}

select option {
    font-family: inherit;
    font-size: 18px;
    padding: 10px;
    background-color: var(--white);
    color: var(--text-main);
}

table {
    width: 100%;
    height: 32px;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid var(--border-light);
    font-size: 16px;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--gray-header);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

td {
    background-color: var(--gray-light);
}

tr:last-child td {
    border-bottom: none;
}

td:last-child, th:last-child {
    border-right: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--primary-hover);
    border-bottom: 1px solid var(--primary-light);
}

a:active {
    filter: brightness(0.8);
}