/* Tool Page Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

.tool-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header .tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tool-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--text-secondary);
}

.tool-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

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

input[type="color"] {
    cursor: pointer;
}

.color-input {
    display: flex;
    gap: 0.75rem;
}

.color-input input[type="color"] {
    width: 60px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 8px;
}

.color-input input[type="text"] {
    flex: 1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-group label:hover {
    background: var(--bg-card-hover);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.result-box {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.result-box label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.color-preview {
    height: 120px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: var(--primary);
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-value-item label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.color-value-row {
    display: flex;
    gap: 0.5rem;
}

.color-value-row input {
    flex: 1;
    font-family: monospace;
}

.image-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.image-compare img {
    width: 100%;
    border-radius: 12px;
    background: var(--bg);
}

.image-compare p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.timezone-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.timezone-section h3 {
    margin-bottom: 1rem;
}

.timezone-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.strength-indicator {
    margin-top: 1.5rem;
}

.strength-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: var(--border);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .image-compare {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
