* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #111, #000);
    color: #fff;
    min-height: 100vh;
    transition: background 0.5s ease;
}

.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    width: 30px;
    height: 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99;
    transition: all 0.3s ease;
    padding: 80px 20px 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 0;
    text-align: center;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

input {
    background-color: #000;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

input:hover {
    background-color: #111;
}

input:focus {
    background-color: #111;
}

button {
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

button:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 2rem;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.result.show {
    display: block;
    opacity: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
    margin-top: 20px;
}

.info-item {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.info-label {
    font-weight: bold;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-value {
    font-size: 1.1rem;
}

.color-name, .element-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.color-preview, .element-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px auto;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    object-fit: cover;
}

.color-preview:hover, .element-preview:hover {
    transform: scale(1.1);
}

.summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
}

.error {
    color: #ff5555;
    margin-top: 10px;
    display: none;
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.8rem;
    color: #aaa;
    opacity: 0.5;
    text-align: center;
    width: 100%;
}
