.tool-container {
    flex: 1;
    padding: 8rem 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.tool-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-white);
}

.tool-panel {
    background: rgba(20, 26, 55, 0.6);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 193, 219, 0.1);
    margin-bottom: 2rem;
}

/* Labels */
.input-label,
.option-label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 500;
}

/* Input fields */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(58, 85, 140, 0.6);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.input-field:focus {
    background: rgba(30, 45, 80, 0.7);
    border-color: rgba(114, 164, 242, 0.9);
    box-shadow: 0 0 0 3px rgba(114, 164, 242, 0.25);
}

.input-field::placeholder {
    color: rgba(184, 193, 219, 0.7);
    font-weight: 400;
}

.size-input,
select.size-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(58, 85, 140, 0.6);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    cursor: pointer;
}

select.size-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.size-input option {
    background: #0d1428;
    color: #ffffff;
    font-weight: 500;
}

.size-input:focus,
select.size-input:focus {
    background: rgba(30, 45, 80, 0.7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    border-color: rgba(114, 164, 242, 0.9);
    box-shadow: 0 0 0 3px rgba(114, 164, 242, 0.25);
}

/* Buttons */
.btn-generate {
    width: 100%;
    padding: 0.75rem 2rem;
    background: var(--gradient-blue);
    border: none;
    border-radius: 25px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-family);
}

.btn-generate:hover:not(:disabled) {
    background: var(--gradient-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.35);
}

.btn-generate:active:not(:disabled) {
    transform: translateY(0);
}

.btn-generate:disabled {
    background: linear-gradient(135deg, #1a2350 0%, #2a3d5f 100%);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.back-link-container {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--gradient-blue);
    border: none;
    border-radius: 25px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    background: var(--gradient-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.35);
}

.back-link:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tool-container {
        padding: 6rem 2rem 2rem;
    }

    .tool-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .tool-panel {
        padding: 1.5rem;
    }

    .back-link {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 2rem;
    }

    .tool-panel {
        padding: 1.2rem;
    }

    .input-label,
    .option-label {
        font-size: 0.9rem;
    }

    .input-field,
    .size-input {
        font-size: 0.95rem;
        padding: 0.65rem 0.9rem;
    }
}
